[SciPy-dev] sandbox

Nils Wagner nwagner@iam.uni-stuttgart...
Sat Sep 22 10:06:28 CDT 2007


On Sat, 22 Sep 2007 08:37:31 -0600
  Jeff Whitaker <jswhit@fastmail.fm> wrote:
> 
> How do I import the sandbox packages?  With 0.6.0 I get
> 
> >>> import scipy.sandbox
> >>> dir(scipy.sandbox)
> ['__builtins__', '__doc__', '__file__', '__name__', 
>'__path__']
> 
> 
> even though
> 
> [jsw@Macintosh:/Users/jsw] ls -l 
> /sw/lib/python2.5/site-packages/scipy/sandbox/
> total 16
> -rw-r--r--   1 root admin    0 Sep 22 08:28 __init__.py
> -rw-r--r--   1 root admin  144 Sep 22 08:04 __init__.pyc
> -rw-r--r--   1 root admin  121 Sep 22 08:27 __init__.py~
> drwxr-xr-x   9 root admin  306 Sep 22 08:22 buildgrid
> drwxr-xr-x  16 root admin  544 Sep 22 08:22 cdavid
> drwxr-xr-x  10 root admin  340 Sep 22 08:22 constants
> drwxr-xr-x  13 root admin  442 Sep 22 08:22 delaunay
> drwxr-xr-x  13 root admin  442 Sep 22 08:22 exmplpackage
> drwxr-xr-x  12 root admin  408 Sep 22 08:22 fdfpack
> drwxr-xr-x  39 root admin 1326 Sep 22 08:22 models
> drwxr-xr-x  22 root admin  748 Sep 22 08:22 multigrid
> drwxr-xr-x   6 root admin  204 Sep 22 08:22 netcdf
> drwxr-xr-x  16 root admin  544 Sep 22 08:22 numexpr
> drwxr-xr-x  26 root admin  884 Sep 22 08:22 pyem
> drwxr-xr-x  11 root admin  374 Sep 22 08:22 rbf
> drwxr-xr-x  10 root admin  340 Sep 22 08:22 rkern
> -rw-r--r--   1 root admin 2719 Sep 22 07:47 setup.py
> -rw-r--r--   1 root admin 1500 Sep 22 08:04 setup.pyc
> drwxr-xr-x  14 root admin  476 Sep 22 08:22 spline
> drwxr-xr-x  24 root admin  816 Sep 22 08:22 svm
> drwxr-xr-x 114 root admin 3876 Sep 22 08:22 xplt
> 
> -Jeff
> 
> 
> -- 
> Jeffrey S. Whitaker         Phone : (303)497-6313
> NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
> 325 Broadway                Boulder, CO, USA 80305-3328
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev


You have to enable them first.
Create a file enabled_packages.txt in your
directory scipy/scipy/sandbox with appropriate
entries
e.g.

arpack
lobpcg
timeseries
multigrid


If you have rebuild scipy you can import them with

from scipy.sandbox import arpack


Cheers,
  
Nils


More information about the Scipy-dev mailing list