Skip to content

Commit

Permalink
added check for when free_energies dict is None
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Feb 26, 2024
1 parent 6dc1257 commit d415d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomisticparsers/gromacs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ def parse_workflow(self):
self.xvg_parser.mainfile = self.get_gromacs_file("xvg")
free_energies = self.xvg_parser.get("results")

title = free_energies.get("title", "")
title = free_energies.get("title", "") if free_energies is not None else ""
flag_FE = False
if r"dH/d\xl\f{}" in title and r"\xD\f{}H" in title:
flag_FE = True
Expand Down

0 comments on commit d415d0e

Please sign in to comment.