Hi,
> Here
>
> http://code.google.com/p/pylibtiff/source/browse/#svn%2Ftrunk%2Flibtiff%2Fbitarray-0.3.5-numpy
>
> you can find bitarray with numpy support.
>
Thanks, that looks promising - to get a numpy array, I need to do
numpy.array(bitarray.bitarray(numpy.binary_repr(i, l)))
for an inte
Hi,
for some research, I need to convert lots of integers into their bit
representation - but as a bit array, not a string like
numpy.binary_repr() returns it.
So instead of
In [22]: numpy.binary_repr(23)
Out[22]: '10111
I'd need:
numpy.binary_magic(23)
Out: array([ True, False, True, True,