Skip to content

Commit

Permalink
add in HDF5Datasets for free energy calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Sep 3, 2024
1 parent 1a9cce7 commit 97f4559
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions atomisticparsers/gromacs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1554,16 +1554,16 @@ def parse_workflow(self):
self.parse_md_workflow(dict(method=method, results=results))

# TODO fix hdf5 datasets here and then implement testing
# if flag_fe and self.archive.m_context:
# 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 flag_fe and self.archive.m_context:
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]

def standardize_input_parameters_dict_recursive(self, input_dict: dict):
"""_summary_
Expand Down

0 comments on commit 97f4559

Please sign in to comment.