[Scipy-svn] r2958 - trunk/Lib/sandbox/timeseries
scipy-svn@scip...
scipy-svn@scip...
Thu May 3 13:52:02 CDT 2007
Author: mattknox_ca
Date: 2007-05-03 13:51:58 -0500 (Thu, 03 May 2007)
New Revision: 2958
Modified:
trunk/Lib/sandbox/timeseries/tdates.py
Log:
fixed bug with get_steps checking for undefined frequency improperly
Modified: trunk/Lib/sandbox/timeseries/tdates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tdates.py 2007-05-03 17:37:21 UTC (rev 2957)
+++ trunk/Lib/sandbox/timeseries/tdates.py 2007-05-03 18:51:58 UTC (rev 2958)
@@ -399,7 +399,7 @@
def get_steps(self):
"""Returns the time steps between consecutive dates.
The timesteps have the same unit as the frequency of the series."""
- if self.freq == 'U':
+ if self.freq == _c.FR_UND:
warnings.warn("Undefined frequency: assuming integers!")
if self._cachedinfo['steps'] is None:
_cached = self._cachedinfo
More information about the Scipy-svn
mailing list