[Numpy-discussion] Could numpy.fromfile() work with gzip-compressed files ?

bruno Piguet bruno.piguet@gmail....
Mon Jul 26 09:09:17 CDT 2010


2010/7/26 bruno Piguet <bruno.piguet@gmail.com>

>
>  - I'm thinking of using something like  np.array(f.read(),
> dtype=some_type).
>

Actually :
data=np.fromstring(f.read(), dtype=some_type, count=-1)

Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100726/a36946bb/attachment.html 


More information about the NumPy-Discussion mailing list