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

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Jan 30 15:30:44 EST 2007


Author: mattknox_ca
Date: 2007-01-30 14:30:38 -0600 (Tue, 30 Jan 2007)
New Revision: 2650

Modified:
   trunk/Lib/sandbox/timeseries/tseries.py
Log:
changed check_freq call to use freq_revdict. Fixed bug with fill_missing_dates

Modified: trunk/Lib/sandbox/timeseries/tseries.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tseries.py	2007-01-30 20:27:29 UTC (rev 2649)
+++ trunk/Lib/sandbox/timeseries/tseries.py	2007-01-30 20:30:38 UTC (rev 2650)
@@ -178,7 +178,7 @@
             cls._defaultdates = newdates    
             # Check frequency......
             if freq is not None:
-                freq = corelib.check_freq(freq)[0]
+                freq = corelib.check_freq(freq)
                 if freq != newdates.freq:
                     _dates = newdates.tofreq(freq)
             else:
@@ -1227,7 +1227,7 @@
     `fill_value` : float *[None]*
         Default value for missing data. If None, the data are just masked.
     """
-    (freq, freqstr) = corelib.check_freq(freq)
+    (freq, freqstr) = corelib.check_freq(freq), corelib.check_freqstr(freq)
     if freqstr == 'U':
         raise ValueError,\
               "Unable to define a proper date resolution (found %s)." % freqstr




More information about the Scipy-svn mailing list