Changeset 7641
- Timestamp:
- Feb 26, 2010, 4:52:46 PM (15 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r7617 r7641 6909 6909 6910 6910 # check we have a destination directory, create if necessary 6911 if access(dir_name, F_OK) == 0:6911 if not os.path.isdir(dir_name): 6912 6912 if verbose: 6913 6913 log.critical('Make directory %s' % dir_name) 6914 6914 mkdir(dir_name, 0777) 6915 6916 if verbose: 6917 log.critical('Output directory: %s' % dir_name) 6915 6918 6916 6919 copy_file_or_sequence(dir_name, filename1) -
anuga_validation/automated_validation_tests/patong_beach_validation/compare_model_timeseries.py
r7640 r7641 67 67 timevector2, timeseries2 = get_timeseries(swwfile2, gauges) 68 68 69 msg = 'Time vector were different in models %s and %s' %\69 msg = 'Time vectors were different in models %s and %s' %\ 70 70 (swwfile1, swwfile2) 71 71 assert num.allclose(timevector1, timevector2), msg … … 82 82 try: 83 83 res = compare_timeseries(sys.argv[1], sys.argv[2]) 84 except e: 85 print e 84 except: 86 85 sys.exit(-1) 87 86 else: -
anuga_validation/automated_validation_tests/patong_beach_validation/validate.py
r7640 r7641 65 65 66 66 # text at start of 'output dir' line in RUNMODEL_STDOUT file 67 OUTDIR_PREFIX = ' Make directory'67 OUTDIR_PREFIX = 'Output directory: ' 68 68 69 69 # Name of SWW file produced by run_model.py … … 335 335 if line.startswith(OUTDIR_PREFIX): 336 336 output_directory = line.replace(OUTDIR_PREFIX, '', 1) 337 output_directory = output_directory.strip( '\n')337 output_directory = output_directory.strip() 338 338 break 339 339 if output_directory is None: … … 357 357 else: 358 358 log.critical('Simulation results are NOT as expected.') 359 fd = open('c mpsww.stdout', 'r')359 fd = open('compare_model_timeseries.stdout', 'r') 360 360 cmp_error = fd.readlines() 361 361 fd.close() … … 369 369 370 370 # remove remote directory and stdout capture file 371 shutil.rmtree(Remote_Data_Directory, ignore_errors=True)372 try:373 os.remove(RUNMODEL_STDOUT)374 except OSError:375 pass371 #shutil.rmtree(Remote_Data_Directory, ignore_errors=True) 372 #try: 373 # os.remove(RUNMODEL_STDOUT) 374 #except OSError: 375 # pass 376 376 377 377
Note: See TracChangeset
for help on using the changeset viewer.