Changeset 2545 for inundation-numpy-branch/utilities/numerical_tools.py
- Timestamp:
- Mar 14, 2006, 4:37:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation-numpy-branch/utilities/numerical_tools.py
r2533 r2545 8 8 #(this should move to somewhere central) 9 9 try: 10 from scipy import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate10 from numpy import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate 11 11 except: 12 print 'Could not find scipy - using Numeric'12 print 'Could not find numpy - using Numeric' 13 13 from Numeric import ArrayType, array, sum, innerproduct, ravel, sqrt, searchsorted, sort, concatenate 14 14 … … 181 181 else: 182 182 if type(A) == ArrayType: 183 if A. typecode== typecode:183 if A.dtype.char == typecode: 184 184 return array(A) #FIXME: Shouldn't this just return A? 185 185 else: … … 242 242 #Initialise module 243 243 244 from utilities import compile 244 #from utilities import compile 245 import compile 245 246 if compile.can_use_C_extension('util_ext.c'): 246 247 from util_ext import gradient, gradient2
Note: See TracChangeset
for help on using the changeset viewer.