Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Apr 19, 2024
1 parent 6640807 commit 45d4091
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions atomisticparsers/gromacs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,16 +1446,17 @@ def parse_workflow(self):

self.parse_md_workflow(dict(method=method, results=results))

if flag_fe and self.archive.m_context:
if flag_fe:
sec_fe_parameters = (
self.archive.workflow2.method.free_energy_calculation_parameters[0]
)
sec_fe = self.archive.workflow2.results.free_energy_calculations[0]
sec_fe.method_ref = sec_fe_parameters
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]
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]

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

0 comments on commit 45d4091

Please sign in to comment.