Changeset 7543


Ignore:
Timestamp:
Oct 2, 2009, 5:20:38 PM (9 years ago)
Author:
ole
Message:

Reinstated forgotten 'num.allclose'. This was detected by Python 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_quantity.py

    r7519 r7543  
    15711571        quantity.saxpy_centroid_values(2.0, 3.0)
    15721572
    1573         assert(quantity.centroid_values, 2.0*d_values + 3.0*c_values)
     1573        assert num.allclose(quantity.centroid_values, 2.0*d_values + 3.0*c_values)
    15741574
    15751575
     
    22652265        #e: (6+6+6)/3       
    22662266        #f: 4
    2267         assert(quantity.get_values(location='unique vertices'), [0, 4, 2, 8, 6, 4])       
     2267        assert num.allclose(quantity.get_values(location='unique vertices'), [0, 4, 2, 8, 6, 4])       
    22682268                                                                                 
    22692269       
Note: See TracChangeset for help on using the changeset viewer.