Ignore:
Timestamp:
Jan 15, 2009, 11:03:42 AM (15 years ago)
Author:
rwilson
Message:

Changed .array(A) to .array(A, num.Int) where appropriate. Helps when going to numpy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/test_numerical_tools.py

    r6158 r6174  
    9090        assert B[0] == 1.0 and B[1] == 2.0 and B[2] == 3.0 and B[3] == 4.0
    9191
    92         A = num.array([1,2,3,4])
     92        A = num.array([1,2,3,4], num.Int)      #array default#
    9393        B = ensure_numeric(A)
    9494        assert type(B) == num.ArrayType
     
    9797        assert A is B   #Same object
    9898
    99         A = num.array([1,2,3,4])
     99        A = num.array([1,2,3,4], num.Int)      #array default#
    100100        B = ensure_numeric(A, num.Float)
    101101        assert type(B) == num.ArrayType
Note: See TracChangeset for help on using the changeset viewer.