Skip to content

Commit

Permalink
Load output from restart_dict only if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Jun 29, 2024
1 parent 4010cb1 commit 728aeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def __init__(self,
for rxn in self.rxn_list:
self.rxn_dict[rxn.index] = rxn
if self.restart_dict is not None:
self.output = self.restart_dict['output']
self.output = self.restart_dict['output'] if 'output' in self.restart_dict else dict()
self.output_multi_spc = self.restart_dict['output_multi_spc'] if 'output_multi_spc' in self.restart_dict else dict()
if 'running_jobs' in self.restart_dict:
self.restore_running_jobs()
Expand Down

0 comments on commit 728aeea

Please sign in to comment.