Skip to content

Commit

Permalink
added method check to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Feb 27, 2024
1 parent 398ab54 commit f236846
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_gromacsparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from nomad.datamodel import EntryArchive
from atomisticparsers.gromacs import GromacsParser
# from simulationworkflowschema.MolecularDynamics import FreeEnergyCalculationParameters
from simulationworkflowschema.molecular_dynamics import FreeEnergyCalculationParameters


def approx(value, abs=0, rel=1e-6):
Expand Down Expand Up @@ -503,4 +503,5 @@ def get_dataset(filename_with_path):
assert len(sec_results.times) == 5001
assert sec_results.times.to("ps")[10].magnitude == approx(2.0)
assert sec_results.value_unit == "kilojoule"
# assert isinstance(sec_results.method_ref, FreeEnergyCalculationParameters())
assert isinstance(sec_results.method_ref, FreeEnergyCalculationParameters)
# TODO add testing of hdf5 references in sec_results ('value_total_energy_magnitude', 'value_total_energy_derivative_magnitude', 'value_total_energy_differences_magnitude', 'value_PV_energy_magnitude') to NOMAD testing

0 comments on commit f236846

Please sign in to comment.