[Scipy-svn] r2567 - trunk/Lib/sandbox/timeseries

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Jan 15 14:17:41 CST 2007


Author: mattknox_ca
Date: 2007-01-15 14:17:32 -0600 (Mon, 15 Jan 2007)
New Revision: 2567

Modified:
   trunk/Lib/sandbox/timeseries/tseries.py
Log:
fixed bug with __new__ method of TimeSeries class not accepting a list for the data

Modified: trunk/Lib/sandbox/timeseries/tseries.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tseries.py	2007-01-15 19:20:59 UTC (rev 2566)
+++ trunk/Lib/sandbox/timeseries/tseries.py	2007-01-15 20:17:32 UTC (rev 2567)
@@ -220,7 +220,7 @@
 #        newdata = MaskedArray.__new__(cls, data=_data, mask=mask, **options)
         newdata = super(TimeSeries,cls).__new__(cls, _data, mask=mask,
                                                 **options)
-        assert(_datadatescompat(data,newdates))
+        assert(_datadatescompat(newdata.data,newdates))
         return newdata
             
     #..................................



More information about the Scipy-svn mailing list