Skip to content

Commit d457482

Browse files
committed
Allow functions to be used standalone.
1 parent 7f3e67f commit d457482

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/somd2/runner/_samplers/_terminal_flip.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ def detect_terminal_groups(system, flip_angle=None):
173173
# All atoms in the system, used to obtain absolute (OpenMM) atom indices.
174174
all_atoms = system.atoms()
175175

176+
import sire.morph as _morph
177+
176178
for mol in pert_mols:
179+
mol = _morph.link_to_reference(mol)
180+
177181
try:
178182
connectivity = mol.property("connectivity")
179183
except Exception:

0 commit comments

Comments
 (0)