Ignore:
Timestamp:
Nov 29, 2007, 5:46:55 PM (17 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.

File:
1 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   
Note: See TracChangeset for help on using the changeset viewer.