Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Sep 17, 2024
1 parent 0983ea8 commit 7985558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atomisticparsers/utils/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def parse_method(self):
sec_method.force_field = ForceField(model=[Model(name=traj[0].calc.name)])

description = traj.description if hasattr(traj, 'description') else dict()
if not description:
return

calc_type = description.get('type')
if calc_type == 'optimization':
Expand Down

0 comments on commit 7985558

Please sign in to comment.