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

scipy-svn@scip... scipy-svn@scip...
Tue Mar 20 14:29:22 CDT 2007


Author: mattknox_ca
Date: 2007-03-20 14:29:14 -0500 (Tue, 20 Mar 2007)
New Revision: 2859

Modified:
   trunk/Lib/sandbox/timeseries/__init__.py
   trunk/Lib/sandbox/timeseries/tdates.py
Log:
moved python callback initialization from __init__ script to tdates.py

Modified: trunk/Lib/sandbox/timeseries/__init__.py
===================================================================
--- trunk/Lib/sandbox/timeseries/__init__.py	2007-03-20 17:48:13 UTC (rev 2858)
+++ trunk/Lib/sandbox/timeseries/__init__.py	2007-03-20 19:29:14 UTC (rev 2859)
@@ -14,12 +14,6 @@
 __date__     = '$Date$'
 
 # initialize python callbacks for C code
-import cseries as cs
-import parser
-from parser import DateFromString, DateTimeFromString
-cs.set_callback_DateFromString(DateFromString)
-cs.set_callback_DateTimeFromString(DateTimeFromString)
-
 import tcore
 from tcore import *
 import const
@@ -34,8 +28,8 @@
 from addons import filters, interpolate
 
 
-__all__ = ['const', 'tdates','parser','tseries','tmulti','reportlib','filters',
-           'interpolate','DateFromString','DateTimeFromString']
+__all__ = ['const', 'tdates','tseries','tmulti','reportlib','filters',
+           'interpolate']
 __all__ += tdates.__all__
 __all__ += tseries.__all__
 __all__ += tmulti.__all__

Modified: trunk/Lib/sandbox/timeseries/tdates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tdates.py	2007-03-20 17:48:13 UTC (rev 2858)
+++ trunk/Lib/sandbox/timeseries/tdates.py	2007-03-20 19:29:14 UTC (rev 2859)
@@ -33,6 +33,9 @@
 import const as _c
 import cseries
 
+cseries.set_callback_DateFromString(DateFromString)
+cseries.set_callback_DateTimeFromString(DateTimeFromString)
+
 from cseries import Date, thisday, check_freq, check_freq_str, get_freq_group
 today = thisday
 



More information about the Scipy-svn mailing list