[Scipy-svn] r2671 - trunk/Lib/sandbox/timeseries
scipy-svn@scip...
scipy-svn@scip...
Thu Feb 1 15:41:55 CST 2007
Author: pierregm
Date: 2007-02-01 15:41:54 -0600 (Thu, 01 Feb 2007)
New Revision: 2671
Modified:
trunk/Lib/sandbox/timeseries/tseries.py
Log:
tseries: make sure TimeSeries has a fake options attribute (needed by MaskedArray)
Modified: trunk/Lib/sandbox/timeseries/tseries.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tseries.py 2007-02-01 21:36:21 UTC (rev 2670)
+++ trunk/Lib/sandbox/timeseries/tseries.py 2007-02-01 21:41:54 UTC (rev 2671)
@@ -192,12 +192,13 @@
The combination of `series` and `dates` is the `data` part.
"""
+ options = None
def __new__(cls, data, dates=None, mask=nomask,
freq=None, observed=None, start_date=None,
dtype=None, copy=False, fill_value=None,
keep_mask=True, small_mask=True, hard_mask=False):
#tslog.info("__new__: received data types %s, %s" % (type(data), data))
- options = dict(copy=copy, dtype=dtype, fill_value=fill_value,
+ maparms = dict(copy=copy, dtype=dtype, fill_value=fill_value,
keep_mask=keep_mask, small_mask=small_mask,
hard_mask=hard_mask, )
if isinstance(data, TimeSeries):
@@ -251,7 +252,7 @@
assert(numeric.size(newdates)==1)
return _data.view(cls)
newdata = super(TimeSeries,cls).__new__(cls, _data, mask=mask,
- **options)
+ **maparms)
assert(_datadatescompat(newdata._data,newdates))
return newdata
More information about the Scipy-svn
mailing list