Skip to content

Commit

Permalink
fix: symlink ff before parsing top
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hartmann committed Mar 21, 2024
1 parent 06c46b9 commit 0b61cb3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_default_reactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,20 @@ def homolysis_files(tmp_path: Path):
file_dir = Path(__file__).parent / "test_default_reactions"
shutil.copytree(file_dir, tmp_path, dirs_exist_ok=True)
os.chdir(tmp_path)
top = Topology(read_top(Path("topol.top")))
plumed = read_plumed(Path("plumed.dat"))
distances = read_distances_dat(Path("distances.dat"))
distances_avg = read_distances_dat(Path("distances_avg.dat"))
ffbonded = read_top(Path("ffbonded.itp"))
edissoc = read_edissoc(Path("edissoc.dat"))

assetsdir = Path(__file__).parent / "assets"
Path(tmp_path / "amber99sb-star-ildnp.ff").symlink_to(
assetsdir / "amber99sb-star-ildnp.ff",
target_is_directory=True,
)

top = Topology(read_top(Path("topol.top")))
plumed = read_plumed(Path("plumed.dat"))
distances = read_distances_dat(Path("distances.dat"))
distances_avg = read_distances_dat(Path("distances_avg.dat"))
ffbonded = read_top(Path("ffbonded.itp"))
edissoc = read_edissoc(Path("edissoc.dat"))

files = {
"top": top,
"plumed": plumed,
Expand Down

0 comments on commit 0b61cb3

Please sign in to comment.