Skip to content

Commit

Permalink
Allow end-state connectivity property to differ. [closes #344]
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Sep 27, 2024
1 parent 71927d1 commit eccf310
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/BioSimSpace/Align/_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,8 +1162,13 @@ def merge(
"perturbation will likely be unstable."
)

# Set the "connectivity" property.
edit_mol.setProperty("connectivity", conn)
# Set the "connectivity" property. If the end state connectivity is the same,
# then we can just set the "connectivity" property.
if conn0 == conn1:
edit_mol.setProperty("connectivity", conn0)
else:
edit_mol.setProperty("connectivity0", conn0)
edit_mol.setProperty("connectivity1", conn1)

# Create the CLJNBPairs matrices.
ff = molecule0.property(ff0)
Expand Down

0 comments on commit eccf310

Please sign in to comment.