Re: numpy - save many arrays into a file object

2010-06-30 Thread Peter Otten
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 starti

Re: numpy - save many arrays into a file object

2010-06-30 Thread Terry Reedy
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 record

numpy - save many arrays into a file object

2010-06-30 Thread Laszlo Nagy
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.)