Repository navigation
Conversation
lohedges
had a problem deploying
to
sire-build
November 10, 2026 22:03 — with
GitHub Actions
Failure
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #528.
Closes #529.
ConnectivityBase::inRingfound rings by enumerating paths withfindPaths(..., MAX_RING_SIZE), withMAX_RING_SIZE = 12hard coded, so atoms and bonds in larger rings, e.g. macrocycles, were reported as not being in a ring.Changes
inRing(BondID)) now use a single depth-first search for the biconnected components of the bond graph (Tarjan's algorithm), so there is no limit on ring size. An atom is in a ring if it belongs to a component of more than two atoms, and two atoms are in the same ring if they share one.std::shared_ptr, read and written atomically, so it is computed once per molecule. Copies share it, and it is cleared byConnectivityEditor::connect,disconnectanddisconnectAll, and when streamed in.AngleIDandDihedralIDoverloads keep usingfindPaths, with a new optionalmax_ring_sizeargument that defaults to 12. It is now the actual largest ring size matched: the overloads look for two paths between the end atoms that share no other atoms, forming a ring of at mostmax_ring_sizeatoms that contains all of the passed atoms. Queries whose atoms aren't in a common ring system are rejected from the cache before any path search.Connectivity.make_compatible_withkeeping bonds to removed atoms when the atom matcher doesn't change the order of the atoms, e.g.AtomIdxMatcher. The new ring search visits every atom, so these stale bonds would have caused out-of-bounds reads.tests/mol/test_in_ring.pyandtests/mol/test_connectivity.py.Behaviour changes
in_ring.False. For bonded atoms the result is unchanged, apart from the size limit.Downstream
in_ringcheck in_check_ringalready assumes these semantics. The ring-break false positive for a pair of atoms in a ring of up to 12 atoms in one end state and 13 to 50 atoms in the other is fixed. TheAligntests pass unchanged._in_ringworkaround can be replaced byConnectivity.in_ring, and the test asserting that Sire misses macrocycles needs flipping.Checklist
develinto this branch before issuing this pull request (e.g. by runninggit pull origin devel): [y]LICENSEfile: [y]