Changeset 6165


Ignore:
Timestamp:
Jan 14, 2009, 3:55:08 PM (10 years ago)
Author:
ole
Message:

Added num prefixes to new test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/test_interpolate.py

    r6164 r6165  
    13661366
    13671367        # One quantity
    1368         Q = zeros((8,6), num.Float)
     1368        Q = num.zeros((8,6), num.Float)
    13691369
    13701370        # Linear in time and space
     
    13861386        for j in range(90): #t in [1, 10]           
    13871387            for id in range(len(interpolation_points)):
    1388                 assert allclose(I(t, id), t*answer[id])
     1388                assert num.allclose(I(t, id), t*answer[id])
    13891389            t += 0.1   
    13901390
     
    14001400
    14011401        assert len(I.time) == 4
    1402         assert( allclose(I.time, [1.0, 4.0, 7.0, 9.0] ))   
     1402        assert num.allclose(I.time, [1.0, 4.0, 7.0, 9.0])
    14031403
    14041404        answer = linear_function(interpolation_points)
     
    14071407        for j in range(80): #t in [1, 9]                       
    14081408            for id in range(len(interpolation_points)):
    1409                 assert allclose(I(t, id), t*answer[id])
     1409                assert num.allclose(I(t, id), t*answer[id])
    14101410            t += 0.1   
    14111411
Note: See TracChangeset for help on using the changeset viewer.