Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Feb 18, 2023
1 parent 8108d71 commit 3832c99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openfecli/commands/quickrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ def quickrun(transformation, directory, output):
else:
estimate = uncertainty = None # for output file

# TODO: remove this ugly hack on next release
# strip out Settings objects in each unit_result inputs dict
for _, dd in out_dict['unit_results'].items():
dd['inputs'].pop('settings')

out_dict = {
'estimate': estimate,
'uncertainty': uncertainty,
Expand All @@ -78,6 +73,11 @@ def quickrun(transformation, directory, output):
for unit in dagresult.protocol_unit_results
}
}
# TODO: remove this ugly hack on next release
# strip out Settings objects in each unit_result inputs dict
for _, dd in out_dict['unit_results'].items():
if 'inputs' in dd:
dd['inputs'].pop('settings')

if output:
with open(output, mode='w') as outf:
Expand Down

0 comments on commit 3832c99

Please sign in to comment.