[Numpy-discussion] What to use to read and write numpy arrays to a file?
Robert Kern
robert.kern at gmail.com
Mon Dec 8 16:28:14 EST 2008
On Mon, Dec 8, 2008 at 15:26, Lou Pecora <lou_boog2000 at yahoo.com> wrote:
> --- On Mon, 12/8/08, Robert Kern <robert.kern at gmail.com> wrote:
>
>> From: Robert Kern <robert.kern at gmail.com>
>> Subject: Re: [Numpy-discussion] What to use to read and write numpy arrays to a file?
>>
>> The most bulletproof way would be to use numpy.save() and
>> numpy.load(), but this is a binary format, not a text one.
>>
>> --
>> Robert Kern
>>
>
> Thanks, Robert. I may have to go that route, assuming that the save and load pair preserve shape, i.e. I don't have to know the shape when I read back in.
They do.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion
mailing list