Changeset 4349


Ignore:
Timestamp:
Apr 3, 2007, 2:37:32 PM (18 years ago)
Author:
duncan
Message:

change file format of URS points

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

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/geospatial_data/geospatial_data.py

    r4289 r4349  
    12521252    for i, vert in enumerate( points):
    12531253        fd.write(str(round(vert[0],7)) + delimiter + \
    1254                  str(round(vert[1],7)) + delimiter +str(i+1)+ "\n")
     1254                 str(round(vert[1],7)) + delimiter +str(i)+ "\n")
    12551255    fd.close()
    12561256   
  • anuga_core/source/anuga/geospatial_data/test_geospatial_data.py

    r4252 r4349  
    20522052        lines = handle.readlines()
    20532053        assert lines[0],'2'
    2054         assert lines[1],'-34.0002778 150.0 1'
    2055         assert lines[2],'-34.0 150.5 2'
     2054        assert lines[1],'-34.0002778 150.0 0'
     2055        assert lines[2],'-34.0 150.5 1'
    20562056        handle.close()
    20572057        os.remove(fn)
Note: See TracChangeset for help on using the changeset viewer.