Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csbrasnett committed Jan 6, 2025
1 parent c32d2da commit d393ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions vermouth/rcsu/go_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def prepare_run(self, system, moltype):
vermouth.MergeAllMolecules().run_system(system)
molecule = system.molecules[0]
molecule.meta['moltype'] = moltype
# add citations for the go model here
molecule.citations.add('M3_GO')

def run_system(self, system, **kwargs):
self.kwargs = kwargs
Expand Down
6 changes: 4 additions & 2 deletions vermouth/rcsu/go_vs_includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class VirtualSiteCreator(Processor):
Assign molecule type names to the molecules in a system.
:func:`add_virtual_sites`
"""
def __init__(self, go_anchor_bead, go_atomname):
def __init__(self, go_anchor_bead='BB', go_atomname='CA'):
self.system = None
self.backbone = go_anchor_bead
self.atomname = go_atomname
Expand All @@ -52,6 +52,8 @@ def run_molecule(self, molecule):

if not self.system:
raise ValueError('This processor requires a system.')
# add citations for the go model here
molecule.citations.add('M3_GO')

self.add_virtual_sites(molecule,
prefix=moltype,
Expand All @@ -65,7 +67,7 @@ def run_system(self, system):
LOGGER.info("Adding Virtual Sites to backbone beads.", type="step")
super().run_system(system)

def add_virtual_sites(self, molecule, prefix, backbone='BB', atomname='CA', charge=0):
def add_virtual_sites(self, molecule, prefix, backbone, atomname, charge=0):
"""
Add the virtual sites for GoMartini in the molecule.
Expand Down

0 comments on commit d393ff2

Please sign in to comment.