Skip to content
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
18 changes: 18 additions & 0 deletions src/BioSimSpace/Align/_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,24 @@ def merge(
if _ring_making or _ring_breaking:
_mol_info = edit_mol.info()

# Store the changing bond pairs as molecule properties so the
# simulation engine can apply a softcore force to the pair in the
# end state where the bond is absent, preventing large repulsion at
# the bonded/nonbonded lambda boundary. Ring-breaking (absent at
# λ=1) and ring-making (absent at λ=0) are stored separately so
# the engine can apply different alpha schedules to each.
for _pairs, _prop in [
(_ring_breaking, "ring_breaking_bonds"),
(_ring_making, "ring_making_bonds"),
]:
if _pairs:
edit_mol.set_property(
_prop,
_SireBase.IntegerArrayProperty(
[_idx for _pair in sorted(_pairs) for _idx in _pair]
),
)

for _changing, _suffix in [(_ring_making, "0"), (_ring_breaking, "1")]:
if not _changing:
continue
Expand Down
3 changes: 3 additions & 0 deletions src/BioSimSpace/Sandpit/Exscientia/Solvent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
.. autosummary::
:toctree: generated/

addIons
ions
solvate
spc
spce
Expand Down Expand Up @@ -117,4 +119,5 @@
_sr.use_new_api()
del _sr

from ._ions import *
from ._solvent import *
Loading
Loading