[Scipy-svn] r3590 - in branches/scipy.scons/scipy/special: . tests

scipy-svn@scip... scipy-svn@scip...
Sun Nov 25 11:34:23 CST 2007


Author: cdavid
Date: 2007-11-25 11:34:13 -0600 (Sun, 25 Nov 2007)
New Revision: 3590

Modified:
   branches/scipy.scons/scipy/special/spfun_stats.py
   branches/scipy.scons/scipy/special/tests/test_basic.py
Log:
Avoid importing from scipy to stay as local as possible

Modified: branches/scipy.scons/scipy/special/spfun_stats.py
===================================================================
--- branches/scipy.scons/scipy/special/spfun_stats.py	2007-11-24 17:43:31 UTC (rev 3589)
+++ branches/scipy.scons/scipy/special/spfun_stats.py	2007-11-25 17:34:13 UTC (rev 3590)
@@ -34,7 +34,7 @@
 analysis."""
 
 import numpy as N
-from scipy.special import gammaln as loggam
+from _cephes import gammaln as loggam
 
 def multigammaln(a, d):
     """returns the log of multivariate gamma, also sometimes called the

Modified: branches/scipy.scons/scipy/special/tests/test_basic.py
===================================================================
--- branches/scipy.scons/scipy/special/tests/test_basic.py	2007-11-24 17:43:31 UTC (rev 3589)
+++ branches/scipy.scons/scipy/special/tests/test_basic.py	2007-11-25 17:34:13 UTC (rev 3590)
@@ -36,8 +36,8 @@
 
 from numpy.testing import *
 set_package_path()
-from scipy.special import *
-import scipy.special._cephes as cephes
+from special import *
+import special._cephes as cephes
 restore_path()
 
 class TestCephes(NumpyTestCase):



More information about the Scipy-svn mailing list