Changeset 7567
- Timestamp:
- Nov 24, 2009, 3:25:22 PM (15 years ago)
- Location:
- anuga_validation/automated_validation_tests/patong_beach_validation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/patong_beach_validation/project.py
r7566 r7567 192 192 193 193 # create paths generated from environment variables. 194 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 195 muxhome = os.getenv(ENV_MUXHOME) 196 194 #home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder 195 #muxhome = os.getenv(ENV_MUXHOME) 196 197 output_dirname = os.path.dirname(__file__) 198 home = os.path.join(output_dirname, 'local_data', 'data') 199 muxhome = home # FIXME (Ole): Get rid off 200 197 201 # check various directories/files that must exist 198 202 anuga_folder = join(home, state, scenario_folder, 'anuga') -
anuga_validation/automated_validation_tests/patong_beach_validation/run_model.py
r7276 r7567 28 28 # Related major packages 29 29 from Scientific.IO.NetCDF import NetCDFFile 30 #import numpy as num31 30 32 31 from anuga.interface import create_domain_from_regions … … 45 44 from anuga.caching import cache 46 45 46 import project 47 47 import anuga.utilities.log as log 48 49 #------------------------------------------------------------------------------- 50 # Copy scripts to time stamped output directory and capture screen 51 # output to file. Copy script must be before screen_catcher 52 #------------------------------------------------------------------------------- 53 54 # Make output dir and set log filename before anything is logged 55 os.mkdir(project.output_run) 56 # Tell log module to store log file in output dir 57 log.log_filename = os.path.join(project.output_run, 'anuga.log') 58 log.critical('Log filename: %s' % log.log_filename) 59 60 61 output_dirname = os.path.dirname(project.__file__) 62 copy_code_files(project.output_run, 63 [__file__, 64 os.path.join(output_dirname, project.__name__+'.py'), 65 os.path.join(output_dirname, 'setup_model.py')], 66 verbose=True 67 ) 48 68 49 69 # Application specific imports … … 51 71 import build_urs_boundary as bub 52 72 53 #-------------------------------------------------------------------------------54 # Copy scripts to time stamped output directory and capture screen55 # output to file. Copy script must be before screen_catcher56 #-------------------------------------------------------------------------------57 58 copy_code_files(project.output_run,59 [__file__,60 os.path.join(os.path.dirname(project.__file__),61 project.__name__+'.py'),62 os.path.join(os.path.dirname(project.__file__),63 'setup_model.py')],64 verbose=True65 )66 #start_screen_catcher(project.output_run, 0, 1)67 73 68 74 #------------------------------------------------------------------------------- -
anuga_validation/automated_validation_tests/patong_beach_validation/setup_model.py
r7001 r7567 23 23 24 24 # Test that environment variables are defined. 25 if os.getenv(project.ENV_INUNDATIONHOME) is None:26 print "Environment variable '%s' is not set" % project.ENV_INUNDATIONHOME27 sanity_error = True28 29 if os.getenv(project.ENV_MUXHOME) is None:30 print "Environment variable '%s' is not set" % project.ENV_MUXHOME31 sanity_error = True25 #if os.getenv(project.ENV_INUNDATIONHOME) is None: 26 # print "Environment variable '%s' is not set" % project.ENV_INUNDATIONHOME 27 # sanity_error = True 28 # 29 #if os.getenv(project.ENV_MUXHOME) is None: 30 # print "Environment variable '%s' is not set" % project.ENV_MUXHOME 31 # sanity_error = True 32 32 33 33 #------------------------------------------------------------------------------- -
anuga_validation/automated_validation_tests/patong_beach_validation/validate.py
r7544 r7567 18 18 import anuga.utilities.log as log 19 19 20 log.log_filename = './validation.log' 20 21 21 22 # sourceforge download mirror hosts (must end with '/')
Note: See TracChangeset
for help on using the changeset viewer.