Skip to content

Commit

Permalink
Adding two useful comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Dec 6, 2024
1 parent f16a490 commit 5272b38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aiida_koopmans/engine/aiida.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def run(self, step: Step):
return

def load_step_data(self):
# TODO: if all steps in the step data are completed, we do not need to run this method.
try:
with open('step_data.pkl', 'rb') as f:
# this will overwrite the step_data[configuration],
Expand Down Expand Up @@ -134,6 +135,7 @@ def update_statuses(self) -> None:

def load_results(self, step: Step) -> None:

# TODO: if the step is completed, we do not need to run this load_results method.
self.load_step_data()

if isinstance(step, Process):
Expand Down

0 comments on commit 5272b38

Please sign in to comment.