FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 7c0655b6 authored by Dr T. Mona's avatar Dr T. Mona
Browse files

Back run handling. If env.suit. results are available in a _bak folder, copy...

Back run handling. If env.suit. results are available in a _bak folder, copy results from the _bak folder and skip env.suit. calc.
parent 7308fa27
No related branches found
No related tags found
No related merge requests found
......@@ -249,7 +249,14 @@ def parse_and_check_args(todayString):
my_parser.add_argument(
'--noupload',
action = 'store_true',
help = 'whether results of script should be saved to willow public directory'
help = 'whether results of script should be saved to willow public directory',
)
my_parser.add_argument(
'-b','-bakrun','--plotting','--onlyplotting',
action = 'store_true',
help = 'if env.suit. results are already available in a _bak folder, and only replotting required',
dest = 'bak_run'
)
# get an object holding all of the args
......@@ -441,12 +448,21 @@ def run_Process():
with open(f"{jobPath}/{configFileName}.json",'w') as write_file:
json.dump(configjson,write_file,indent=4)
try:
processing_outputs = process_in_job(jobPath,status,configjson,args.component)
except:
logger.exception('Some error in process_in_job()')
status.reset('ERROR')
endJob(status,premature=True)
if not args.bak_run:
try:
processing_outputs = process_in_job(jobPath,status,configjson,args.component)
except:
logger.exception('Some error in process_in_job()')
status.reset('ERROR')
endJob(status,premature=True)
else:
try:
# Copy previously succesfully finished env.suit. results from a _bak folder
processing_outputs = ProcessorComponents.process_copy_past_job_env2_0(jobPath,status,configjson,args.component)
except:
logger.exception('Some error in ProcessorComponents.process_copy_past_job_env2_0()')
status.reset('ERROR')
endJob(status,premature=True)
if processing_outputs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment