Skip to content

Commit

Permalink
Add gromacs-nvt test
Browse files Browse the repository at this point in the history
  • Loading branch information
oerc0122 committed Feb 14, 2025
1 parent 87d2f97 commit e4778c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MDANSE/Tests/UnitTests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
h2o_xtd = DATA_DIR / "H2O.xtd"
md_pdb = DATA_DIR / "md.pdb"
md_xtc = DATA_DIR / "md.xtc"
gromacs_nvt = (DATA_DIR / "gromacs-nvt.pdb", DATA_DIR / "gromacs-nvt.xtc")


def _converter_test(tmp_path, typ, result, compare, parameters, compression):
temp_name = tmp_path / "output"
Expand Down Expand Up @@ -173,6 +175,11 @@ def _converter_test(tmp_path, typ, result, compare, parameters, compression):
{"fold": False,
"pdb_file": md_pdb,
"xtc_file": md_xtc}),
("Gromacs", "gromacs-nvt.mdt",
("/configuration/coordinates", "/unit_cell", "/time"),
{"fold": False,
"pdb_file": gromacs_nvt[0],
"xtc_file": gromacs_nvt[1]}),
("MDAnalysis", "md.mdt",
("/configuration/coordinates", "/unit_cell", "/time"),
{"topology_file": (md_pdb, "AUTO"),
Expand Down

0 comments on commit e4778c4

Please sign in to comment.