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

Friedrich Romstedt friedrichromstedt@gmail....
Mon Jun 28 14:34:06 CDT 2010


2010/6/28 Ruben Salvador <rsalvador.wk@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