[Numpy-discussion] Is a 4 -bit int dtype possible
ellisonbg.net at gmail.com
Fri Nov 13 20:33:57 EST 2009
I have a large binary data set that has 4-bit integers in it. It is
possible to create a numpy dtype for a 4-bit integer?
I can read the data fine using np.fromfile with a dtype of byte, but to get
the 4-bit ints out I have to bit twiddle which
is a pain.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion