Changeset 6436
- Timestamp:
- Mar 3, 2009, 11:42:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/numerical_tools.py
r6174 r6436 231 231 232 232 233 def ensure_numeric(A, typecode = None): 234 """Ensure that sequence is a Numeric array. 233 def ensure_numeric(A, typecode=None): 234 """Ensure that sequence is a numeric array. 235 235 236 Inputs: 236 237 A: Sequence. If A is already a Numeric array it will be returned … … 254 255 if type(A) == num.ArrayType: 255 256 if A.typecode == typecode: 256 # return num.array(A) #FIXME: Shouldn't this just return A?257 257 return A 258 258 else: 259 return num.array(A, typecode)260 else: 261 return num.array(A, typecode)259 return num.array(A, typecode) 260 else: 261 return num.array(A, typecode) 262 262 263 263
Note: See TracChangeset
for help on using the changeset viewer.