[SciPy-Dev] Bug in TimeSeries.dump?

Dave Hirschfeld dave.hirschfeld@gmail....
Mon Nov 8 06:59:03 CST 2010


Looks like quite a serious bug in the TimeSeries.dump function:

In [175]: test = ts.time_series(np.column_stack([randn(100) for _ in range(24)]),
                                start_date='01-Jan-2010', freq='D')

In [176]: test.dump('test.npy')

In [177]: all(test == np.load('test.npy'))
Out[177]: False

In [178]: test_copy = test.copy()

In [179]: all(test_copy == test)
Out[179]: True

In [180]: test_copy.dump('test.npy')

In [181]: all(test == np.load('test.npy'))
Out[181]: True


...which doesn't seem to happen with a plain ndarray:


In [182]: test = np.column_stack([randn(100) for _ in range(24)])

In [183]: test.dump('test.npy')

In [184]: all(test == np.load('test.npy'))
Out[184]: True

Regards,
Dave



More information about the SciPy-Dev mailing list