Ignore:
Timestamp:
Nov 30, 2008, 10:43:05 AM (16 years ago)
Author:
steve
Message:

Fixed up a few test errors (in windows) in util.py and in interpolate.py. Still 2 failures in test_data_manager.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r6013 r6035  
    20742074def sww2csv_gauges(sww_file,
    20752075                   gauge_file,
    2076                    out_name=None,
     2076                   out_name='gauge_',
    20772077                   quantities = ['stage', 'depth', 'elevation',
    20782078                                 'xmomentum', 'ymomentum'],
     
    20902090        sww_file: path to any sww file
    20912091       
    2092         points_file: Assumes that it follows this format
     2092        gauge_file: Assumes that it follows this format
    20932093            name, easting, northing, elevation
    20942094            point1, 100.3, 50.2, 10.0
     
    21102110        They will all have a header
    21112111   
    2112     Usage: gauges_sww2csv(sww_file='test1.sww',
     2112    Usage: sww2csv_gauges(sww_file='test1.sww',
    21132113                          quantities = ['stage', 'elevation','depth','bearing'],
    21142114                          gauge_file='gauge.txt')   
     
    21222122
    21232123    This is currently quite specific.
    2124     If it need to be more general, chagne things.
     2124    If it needs to be more general, change things.
    21252125
    21262126    This is really returning speed, not velocity.
     
    21392139    assert type(gauge_file) == type(''),\
    21402140           'Gauge filename must be a string'
     2141           
    21412142    assert type(out_name) == type(''),\
    21422143           'Output filename prefix must be a string'
     
    22152216                                 verbose=verbose,
    22162217                                 use_cache=use_cache)
    2217 
    2218     if out_name is None:
    2219         gauge_file='gauge_'
    2220     else:
    2221         gauge_file = out_name
     2218       
     2219    gauge_file = out_name
    22222220
    22232221    heading = [quantity for quantity in quantities]
Note: See TracChangeset for help on using the changeset viewer.