[Numpy-discussion] numpy.load raising IOError but EOFError expected

Friedrich Romstedt friedrichromstedt at gmail.com
Mon Jun 28 15:34:06 EDT 2010


2010/6/28 Ruben Salvador <rsalvador.wk at gmail.com>:
> Thanks for the answer Friedrich, I had already checked numpy.savez, but
> unfortunately I cannot make use of it. I don't have all the data needed to
> be saved at the same time...it is produced each time I run a test.

Yes, I thought of something like:

all_data = numpy.load('file.npz')
all_data[new_key] = new_data
numpy.savez('file.npz', **all_data)

Will this work?

Friedrich



More information about the NumPy-Discussion mailing list