Changeset 5182


Ignore:
Timestamp:
Mar 31, 2008, 4:58:47 PM (16 years ago)
Author:
ole
Message:

Removed test that only executed on Windows
Also made any further reference to make_plots_from_csv_file raise an Exception.

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

Legend:

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

    r5181 r5182  
    13351335    def test_make_plots_from_csv_files(self):
    13361336       
    1337         if sys.platform == 'win32':  #Windows
     1337        #if sys.platform == 'win32':  #Windows
    13381338            try:
    13391339                import pylab
     
    13721372           
    13731373            dir, name=os.path.split(fileName)
    1374             make_plots_from_csv_file(directories_dic={dir:['gauge', 0, 0]},
    1375                                 output_dir=temp_dir,
    1376                                 base_name='time_series_',
    1377                                 plot_numbers=['3-5'],
    1378                                 quantities=['speed','stage','momentum'],
    1379                                 assess_all_csv_files=True,
    1380                                 extra_plot_name='test')
     1374            csv2timeseries_graphs(directories_dic={dir:['gauge', 0, 0]},
     1375                                  output_dir=temp_dir,
     1376                                  base_name='time_series_',
     1377                                  plot_numbers=['3-5'],
     1378                                  quantities=['speed','stage','momentum'],
     1379                                  assess_all_csv_files=True,
     1380                                  extra_plot_name='test')
    13811381           
    13821382            #print dir+sep+name[:-4]+'_stage_test.png'
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r5181 r5182  
    15121512                                assess_all_csv_files=True,
    15131513                                extra_plot_name='test' ):
    1514    
    1515     print 'make_plots_from_csv_file has been replaced by csv2timeseries_graphs ',
    1516     print 'Please use "from anuga.abstract_2d_finite_volumes.util import csv2timeseries_graphs"'
    1517    
     1514
     1515    msg = 'make_plots_from_csv_file has been replaced by csv2timeseries_graphs ',
     1516    msg += 'Please use "from anuga.abstract_2d_finite_volumes.util import csv2timeseries_graphs"'
     1517
     1518    raise Exception, msg
    15181519    return csv2timeseries_graphs(directories_dic,
    15191520                                 output_dir,
Note: See TracChangeset for help on using the changeset viewer.