- Timestamp:
- Jan 15, 2009, 11:03:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/test_numerical_tools.py
r6158 r6174 90 90 assert B[0] == 1.0 and B[1] == 2.0 and B[2] == 3.0 and B[3] == 4.0 91 91 92 A = num.array([1,2,3,4] )92 A = num.array([1,2,3,4], num.Int) #array default# 93 93 B = ensure_numeric(A) 94 94 assert type(B) == num.ArrayType … … 97 97 assert A is B #Same object 98 98 99 A = num.array([1,2,3,4] )99 A = num.array([1,2,3,4], num.Int) #array default# 100 100 B = ensure_numeric(A, num.Float) 101 101 assert type(B) == num.ArrayType
Note: See TracChangeset
for help on using the changeset viewer.