Skip to content

Commit

Permalink
removed deprecated dependency on archive.m_context
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernadette-Mohr committed Jun 19, 2024
1 parent 7e2734d commit aa3325d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions atomisticparsers/gromacs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,11 +1452,10 @@ def parse_workflow(self):
)
sec_fe = self.archive.workflow2.results.free_energy_calculations[0]
sec_fe.method_ref = sec_fe_parameters
if self.archive.m_context:
sec_fe.value_total_energy_magnitude = columns[:, 0]
sec_fe.value_total_energy_derivative_magnitude = columns[:, 1]
sec_fe.value_total_energy_differences_magnitude = columns[:, 2:-1]
sec_fe.value_PV_energy_magnitude = columns[:, -1]
sec_fe.value_total_energy_magnitude = columns[:, 0]
sec_fe.value_total_energy_derivative_magnitude = columns[:, 1]
sec_fe.value_total_energy_differences_magnitude = columns[:, 2:-1]
sec_fe.value_PV_energy_magnitude = columns[:, -1]

def parse_input(self):
sec_run = self.archive.run[-1]
Expand Down

0 comments on commit aa3325d

Please sign in to comment.