[Numpy-discussion] Is a 4 -bit int dtype possible

Brian Granger ellisonbg.net@gmail....
Fri Nov 13 19:33:57 CST 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...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20091113/1ae4bed6/attachment.html 

More information about the NumPy-Discussion mailing list