[SciPy-Dev] Bug in TimeSeries.dump?

Pierre GM pgmdevlist@gmail....
Sun Nov 14 08:15:40 CST 2010


On Nov 8, 2010, at 1:59 PM, Dave Hirschfeld wrote:

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

Indeed, indeed. Looks like there's a problem of order: 
>>> ctrl=ts.time_series(np.column_stack([np.random.randn(100)
                                               for _ in range(24)]),
                              start_date='01-Jan-2010', freq='D')
>>> ctrl.dump('test.npy')
>>> test = np.load('test.npy')
>>> np.allclose(test.data.T.ravel(),ctrl.data.ravel())
True

mmh... Wonder it can come from. I'll keep you posted.


More information about the SciPy-Dev mailing list