diff options
Diffstat (limited to 'weave/accelerate_tools.py')
-rw-r--r-- | weave/accelerate_tools.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weave/accelerate_tools.py b/weave/accelerate_tools.py index f9b59a0df..0b6fc581a 100644 --- a/weave/accelerate_tools.py +++ b/weave/accelerate_tools.py @@ -109,7 +109,7 @@ Integer = Integer() Double = Double() String = String() -import scipy_base.numerix as nx +import scipy.base as nx class Vector(Type_Descriptor): cxxtype = 'PyArrayObject*' @@ -121,7 +121,7 @@ class Vector(Type_Descriptor): owned = 0 # Convertion is by casting! prerequisites = Type_Descriptor.prerequisites+\ - [nx.NX_INCLUDE] + ['#include "scipy/arrayobject.h"'] dims = 1 def check(self,s): return "PyArray_Check(%s) && ((PyArrayObject*)%s)->nd == %d && ((PyArrayObject*)%s)->descr->type_num == %s"%( @@ -260,7 +260,7 @@ def lookup_type(x): try: return typedefs[T] except: - import scipy_base.numerix as nx + import scipy.base as nx if isinstance(T,nx.ArrayType): return typedefs[(T,len(x.shape),x.typecode())] elif T == InstanceType: |