Skip to content

Commit

Permalink
kind to type
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Feb 29, 2024
1 parent 7cc3a55 commit eaad4bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atomisticparsers/gromacs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def get_free_energy_calculation_parameters(self):
key: [to_float(i) for i in val.split()] for key, val in lambdas.items()
}
free_energy_parameters["lambdas"] = [
{"kind": nomad_key, "value": lambdas[gromacs_key]}
{"type": nomad_key, "value": lambdas[gromacs_key]}
for gromacs_key, nomad_key in lambda_key_map.items()
if lambdas[gromacs_key]
]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_gromacsparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ def get_dataset(filename_with_path):
assert sec_method.type == "alchemical"
sec_lambdas = sec_method.lambdas
assert len(sec_lambdas) == 7
assert sec_lambdas[2].kind == "vdw"
assert sec_lambdas[2].type == "vdw"
assert sec_lambdas[2].value[2] == 0.2
assert sec_lambdas[-1].kind == "temperature"
assert sec_lambdas[-1].type == "temperature"
assert sec_lambdas[-1].value[2] == 0.0
assert sec_method.lambda_index == 7
assert sec_method.atom_indices.shape == (1,)
Expand Down

0 comments on commit eaad4bb

Please sign in to comment.