Changeset 4863


Ignore:
Timestamp:
Nov 29, 2007, 5:46:55 PM (16 years ago)
Author:
ole
Message:

Fixed ticket:232 - the problem was that the only proper floats can be compared
to None - not the single precision values that have been reinstated in the
sww file.

Location:
anuga_core/source/anuga/shallow_water
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r4862 r4863  
    7070from Numeric import concatenate, array, Float, Int, Int32, resize, sometrue, \
    7171     searchsorted, zeros, allclose, around, reshape, transpose, sort, \
    72      NewAxis, ArrayType, compress, take, arange, argmax, alltrue,shape,Float32
     72     NewAxis, ArrayType, compress, take, arange, argmax, alltrue, shape, Float32
    7373
    7474import string
     
    56255625   
    56265626   
    5627         # Get the relevant quantities
    5628         elevation = fid.variables['elevation'][:]
    5629         stage = fid.variables['stage'][:]
     5627        # Get the relevant quantities (Convert from single precison)
     5628        elevation = array(fid.variables['elevation'][:], Float)
     5629        stage = array(fid.variables['stage'][:], Float)
    56305630   
    56315631   
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r4862 r4863  
    73277327#-------------------------------------------------------------
    73287328if __name__ == "__main__":
     7329
     7330    #suite = unittest.makeSuite(Test_Data_Manager,'test_get_maximum_inundation')
    73297331    #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_header')
    73307332    suite = unittest.makeSuite(Test_Data_Manager,'test')
Note: See TracChangeset for help on using the changeset viewer.