Skip to content

Commit 6cbe48b

Browse files
committed
Use hardcoded mapping to avoid platform dependency.
1 parent 6b9ae00 commit 6cbe48b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/Sandpit/Exscientia/Align/test_align.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ def butane():
8888

8989
@pytest.fixture()
9090
def propane_butane(propane, butane):
91-
mapping = BSS.Align.matchAtoms(propane, butane)
92-
# We make sure we have a dummy atom in both endstates
93-
mapping.pop(3)
91+
# Hardcoded mapping to avoid non-deterministic MCS results on symmetric
92+
# molecules. Atom 3 (H4 on C1) is excluded to ensure a dummy in both
93+
# end states. Generated with matchAtoms then pop(3) on a reference run:
94+
# propane: C1(0) C2(1) C3(2) H4(3) H5(4) H6(5) H7(6) H8(7) H9(8) H10(9) H11(10)
95+
# butane: C1(0) C2(1) C3(2) C4(3) H5(4) H6(5) H7(6) H8(7) H9(8) H10(9) H11(10) H12(11) H13(12) H14(13)
96+
mapping = {0: 2, 1: 1, 2: 0, 4: 3, 5: 10, 6: 7, 7: 8, 8: 6, 9: 5, 10: 4}
9497
return BSS.Align.merge(propane, butane, mapping)
9598

9699

0 commit comments

Comments
 (0)