Changeset 5183


Ignore:
Timestamp:
Apr 1, 2008, 2:36:00 PM (17 years ago)
Author:
ole
Message:

Implemented a workaround the problem described in ticket:235
Windows machines will now do the automatic testing without attempting to plot.

Location:
anuga_validation/automated_validation_tests/okushiri_tank_validation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py

    r4844 r5183  
    1414
    1515import project
    16 
    17 try:
    18     from pylab import ion, hold, plot, title, legend, xlabel, ylabel, savefig
    19 except:
    20     print 'Could not import pylab'
     16import sys
     17
     18if sys.platform == 'win32':
     19    # Windows has a problem when this module is run through
     20    # os.system as done by validate_okushiri.
     21    # See https://datamining.anu.edu.au/anuga/ticket/235
     22
     23    # If you want to see the plots from this validation,
     24    # run this module by itself with this if clause removed.
    2125    plotting = False
     26   
    2227else:
    23     # Create plots as png files
    24     plotting = True
     28    try:
     29        from pylab import ion, hold, plot, title, legend
     30        from pylab import xlabel, ylabel, savefig
     31    except:
     32        print 'Could not import pylab'
     33        plotting = False
     34    else:
     35        # Create plots as png files
     36        plotting = True
    2537   
    2638
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py

    r4783 r5183  
    2323    def test_that_output_is_as_expected(self):
    2424
     25       
    2526        #print
    2627        s = 'create_okushiri.py'
     
    3334        res = os.system('python %s > run_okushiri.stdout' %s)       
    3435        assert res == 0
     36       
     37       
    3538        s = 'compare_timeseries_with_measures.py'
    3639        #print s
Note: See TracChangeset for help on using the changeset viewer.