Skip to content
Snippets Groups Projects
Commit bb3a4119 authored by David Radu's avatar David Radu
Browse files

removed single true check from main

parent 5442c5a1
No related branches found
No related tags found
No related merge requests found
......@@ -35,18 +35,10 @@ def parse_args():
return parsed_args
def single_true(iterable):
i = iter(iterable)
return any(i) and not any(i)
if __name__ == '__main__':
args = parse_args()
if not single_true([args['run_LS'], args['run_DGH'], args['run_SGH']]):
raise ValueError(' More than one run selected in the argparser.')
logger.info('Starting data pre-processing.')
model_parameters = read_inputs('../config_model.yml')
......
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