numpy - save many arrays into a file object

Terry Reedy tjreedy at udel.edu
Wed Jun 30 12:25:33 EDT 2010


On 6/30/2010 11:48 AM, Laszlo Nagy wrote:
> import numpy
> data = numpy.array(...)
> numpy.save("test.np",data)
>
> This is very good, but I want to save the data into a file object with a
> write() method. E.g. not a real file. (My purpose right now is to save
> many arrays into one binary file, while recording starting positions of
> the arrays.)
>
> How can I do that?

Try the numpy list

-- 
Terry Jan Reedy




More information about the Python-list mailing list