Changeset 6665
- Timestamp:
- Mar 31, 2009, 12:41:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/patong_validation/validate_patong.py
r6660 r6665 119 119 return auth 120 120 121 log.debug(' ----------------------------------------- refreshing local data')121 log.debug('Refreshing local data ...') 122 122 123 123 # create local data directory if required … … 140 140 untar_file(tar_path, target_dir=Local_Data_Directory) 141 141 142 log.debug('Update done.') 143 log.debug('----------------------------------------- refreshing local data') 142 log.debug('Local data has been refreshed.') 144 143 145 144 … … 210 209 # clear all data objects from local data directory 211 210 for data_object in Local_Data_Objects: 212 obj_path = os.path.join(Remote_Data_Directory, data_object) 213 shutil.rmtree(obj_path, ignore_errors=True) 211 obj_path = os.path.join(Local_Data_Directory, data_object) 212 if os.path.isfile(obj_path): 213 os.remove(obj_path) 214 else: 215 shutil.rmtree(obj_path, ignore_errors=True) 216 217 # remove remote directory and stdout capture file 218 shutil.rmtree(Remote_Data_Directory, ignore_errors=True) 219 os.remove(RUNMODEL_STDOUT) 214 220 215 221 … … 226 232 227 233 # run the simulation 228 ##import cProfile229 ##cProfile.run('run_simulation()', filename='patong.prof')230 231 234 run_simulation() 232 235
Note: See TracChangeset
for help on using the changeset viewer.