Skip to content

Commit

Permalink
Removed use of old variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed Apr 18, 2024
1 parent 568d932 commit 5ac17eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulationworkflownormalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self):
self._molecular_dynamics_programs = ['lammps']

def _resolve_workflow(self, archive: EntryArchive):
if not self.entry_archive.run:
if not archive.run:
return

# resolve it from parser
Expand All @@ -66,7 +66,7 @@ def _resolve_workflow(self, archive: EntryArchive):
if workflow is None:
# workflow references always to the last run
# TODO decide if workflow should map to each run
if len(self.entry_archive.run[-1].calculation) == 1:
if len(archive.run[-1].calculation) == 1:
workflow = SinglePoint()
else:
workflow = GeometryOptimization()
Expand Down

0 comments on commit 5ac17eb

Please sign in to comment.