numpy Boolean array representation of an integer
Maybe it is not the easiest, but a compact way is
from numpy import array
array([i for i in bin(5)[2:]]) == '1'
What's the easiest way to produce a numpy Boolean array representation of an integer?  For example, map 6 to np.array([False, True, True], dtype=np.bool).