Skip to content

Commit

Permalink
Remove end-state velocity property from perturbable molecules.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Oct 27, 2023
1 parent f234669 commit accc097
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/BioSimSpace/Sandpit/Exscientia/_SireWrappers/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,18 @@ def addMolecules(self, molecules):
_warnings.warn(
"Failed to remove 'velocity' property from all molecules!"
)
if num_pert_vels > 0:
try:
self._sire_object = _SireIO.removeProperty(
self._sire_object, "velocity0"
)
self._sire_object = _SireIO.removeProperty(
self._sire_object, "velocity1"
)
except:
_warnings.warn(
"Failed to remove 'velocity0' and 'velocity1' property from molecules!"
)

def removeMolecules(self, molecules):
"""
Expand Down
12 changes: 12 additions & 0 deletions python/BioSimSpace/_SireWrappers/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,18 @@ def addMolecules(self, molecules):
_warnings.warn(
"Failed to remove 'velocity' property from all molecules!"
)
if num_pert_vels > 0:
try:
self._sire_object = _SireIO.removeProperty(
self._sire_object, "velocity0"
)
self._sire_object = _SireIO.removeProperty(
self._sire_object, "velocity1"
)
except:
_warnings.warn(
"Failed to remove 'velocity0' and 'velocity1' property from molecules!"
)

def removeMolecules(self, molecules):
"""
Expand Down

0 comments on commit accc097

Please sign in to comment.