[Numpy-discussion] Is a 4 -bit int dtype possible
Brian Granger
ellisonbg.net at gmail.com
Fri Nov 13 20:33:57 EST 2009
Hi,
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.
Cheers,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20091113/1ae4bed6/attachment.html>
More information about the NumPy-Discussion
mailing list