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

bruno Piguet bruno.piguet at gmail.com
Mon Jul 26 10:09:17 EDT 2010


2010/7/26 bruno Piguet <bruno.piguet at 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.python.org/pipermail/numpy-discussion/attachments/20100726/a36946bb/attachment.html>


More information about the NumPy-Discussion mailing list