Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go topol header fix #637

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions vermouth/gmx/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,10 @@ def write_gmx_topology(system,
if "atomtypes" in system.gmx_topology_params:
_path = itp_paths['atomtypes']
write_atomtypes(system, _path, C6C12)
include_string += f'\n #include "{_path}"'
# Next we write the nonbond_params directive
if "nonbond_params" in system.gmx_topology_params:
_path = itp_paths['nonbond_params']
write_nonbond_params(system, _path, C6C12)
include_string += f'\n #include "{_path}"\n'
# Write the ITP files for the molecule types, and prepare writing the
# [ molecules ] section of the top file.
# * We write one ITP file for each different moltype in the system, the
Expand Down
3 changes: 0 additions & 3 deletions vermouth/tests/gmx/test_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ def test_toplevel_topology(tmp_path, dummy_molecule):

reference =f"""#define random
#include "martini.itp"

#include "{tmp_path}/atomtypes.itp"
#include "{tmp_path}/nonbond_params.itp"
#include "molecule_0.itp"

[ system ]
Expand Down
Loading