Changeset 3830


Ignore:
Timestamp:
Oct 19, 2006, 6:35:45 PM (18 years ago)
Author:
ole
Message:

Fixed broken tests

File:
1 edited

Legend:

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

    r3826 r3830  
    42504250   
    42514251    lonlatdep = p_array.array('f')
    4252     points_num = 2914
     4252    ####points_num = 2914
    42534253    lonlatdep.read(f, columns * points_num)
    42544254    lonlatdep = array(lonlatdep, typecode=Float)   
     
    42584258   
    42594259    lon, lat, depth = lon_lat2grid(lonlatdep)
    4260     lon_sorted = lon[:]
     4260    lon_sorted = list(lon)
    42614261    lon_sorted.sort()
    4262    
    4263 #    if not lon == lon_sorted:
     4262
    42644263    if not allclose(lon, lon_sorted):
    42654264        msg = "Longitudes in mux file are not in ascending order"
    42664265        raise IOError, msg
    4267     lat_sorted = lat[:]
    4268     lat_sorted.sort()   
    4269 #    if not lat == lat_sorted:
     4266    lat_sorted = list(lat)
     4267    lat_sorted.sort()
     4268
    42704269    if not allclose(lat, lat_sorted):
    42714270        msg = "Latitudes in mux file are not in ascending order"
     
    43534352    LAT = 1
    43544353    QUANTITY = 2
    4355    
    4356 #    print 'long_lat_dep', type(long_lat_dep), long_lat_dep.shape
    4357 #    print 'long_lat_dep', long_lat_dep
     4354
     4355    long_lat_dep = ensure_numeric(long_lat_dep, Float)
    43584356   
    43594357    num_points = long_lat_dep.shape[0]
Note: See TracChangeset for help on using the changeset viewer.