Ignore:
Timestamp:
Apr 9, 2013, 4:17:11 PM (12 years ago)
Author:
steve
Message:

Speed up of dem2pts via conversion to numpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/test_dem2pts.py

    r8780 r8821  
    208208        # Get the variables
    209209        #print fid.variables.keys()
    210         points = fid.variables['points']
    211         elevation = fid.variables['elevation']
     210        points = fid.variables['points'][:]
     211        elevation = fid.variables['elevation'][:]
    212212
    213213        #Check values
     
    246246
    247247
     248
    248249        assert num.allclose(points, new_ref_points)
    249250        assert num.allclose(elevation, ref_elevation)
Note: See TracChangeset for help on using the changeset viewer.