FAQ | This is a LIVE service | Changelog

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

Cleaning unnecessary additional argument and if condition.

parent fe7477af
No related merge requests found
......@@ -249,14 +249,7 @@ 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',
)
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'
help = 'whether results of script should be saved to willow public directory'
)
# get an object holding all of the args
......@@ -448,22 +441,13 @@ def run_Process():
with open(f"{jobPath}/{configFileName}.json",'w') as write_file:
json.dump(configjson,write_file,indent=4)
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)
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 processing_outputs:
if isinstance(processing_outputs,list):
......
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