RDKit GetSSSR Non-determinism Fix#2920
Open
JacksonBurns wants to merge 3 commits intoReactionMechanismGenerator:mainfrom
Open
RDKit GetSSSR Non-determinism Fix#2920JacksonBurns wants to merge 3 commits intoReactionMechanismGenerator:mainfrom
GetSSSR Non-determinism Fix#2920JacksonBurns wants to merge 3 commits intoReactionMechanismGenerator:mainfrom
Conversation
Goal of this PR is to resolve: ReactionMechanismGenerator#2912 The RDKit `GetSSSR` algorithm _is_ deterministic for the same input (unlike the previous RMG version) __but__ the process of converting the RMG molecule into RDKit does _not_ guarantee the same ordering of atoms, which results in non-determinism. This PR forces the RDKit molecule to have a consistent ordering, and should (hopefully) give the same results each time. To test this, we just need to run the regression tests multiple times on the same reference results (so, on the same day, without any changes to `main`). The results should be different from the `main` results, but in the same way.
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.
Goal of this PR is to resolve: #2912
The RDKit
GetSSSRalgorithm is deterministic for the same input (unlike the previous RMG version) but the process of converting the RMG molecule into RDKit does not guarantee the same ordering of atoms, which results in non-determinism. This PR forces the RDKit molecule to have a consistent ordering, and should (hopefully) give the same results each time.Easiest way to test this: just need to run the regression tests multiple times on the same reference results (so, on the same day, without any changes to
main). The results should be different from themainresults, but in the same way.