[Numpy-discussion] numpy.save bug on solaris x86 w/ nans and objects

John Hunter jdh2358 at gmail.com
Tue May 20 13:25:14 EDT 2008


On Tue, May 20, 2008 at 12:13 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:

> Looks like we need to add a test for this before release. But I'm off to
> work.

Here's a simpler example in case you want to wrap it in a test harness:

import datetime
import numpy as np

r = np.rec.fromarrays([
    [datetime.date(2007,1,1), datetime.date(2007,1,2), datetime.date(2007,1,2)],
    [.1, .2, np.nan],
    ], names='date,value')


np.save('mytest.npy', r)



More information about the NumPy-Discussion mailing list