Changeset 7642


Ignore:
Timestamp:
Feb 26, 2010, 5:33:59 PM (13 years ago)
Author:
ole
Message:

Got skeleton validation to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/patong_beach_validation/compare_model_timeseries.py

    r7641 r7642  
    1010"""
    1111
     12from anuga.abstract_2d_finite_volumes.util import file_function
    1213import numpy as num
    13 import sys
     14import sys, os
    1415
    1516# Model specific data
     
    4142    gauge_locations = gauges.values()
    4243    gauge_names = gauges.keys()
    43    
    44     f = file_function(sww_filename,
     44
     45    print sww_filename
     46    print gauge_locations
     47    os.system('cp %s tempfile.sww' % sww_filename) # Has end with sww
     48    f = file_function('tempfile.sww', #_filename,
    4549                      quantities='stage',
    4650                      interpolation_points=gauge_locations,
     
    7175    assert num.allclose(timevector1, timevector2), msg
    7276
     77    print 'OK'
    7378   
    7479
     
    7984        usage()
    8085        import sys; sys.exit(-1)
    81    
     86
     87    res = compare_timeseries(sys.argv[1], sys.argv[2])
    8288    try:
    8389        res = compare_timeseries(sys.argv[1], sys.argv[2])
Note: See TracChangeset for help on using the changeset viewer.