-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a species constraint for the max number of rings fused together #2606
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
b300c09
to
7b6dbdb
Compare
@alongd with the merging of #2608 and #2609 this PR should be good to review after a rebase. A pre-emptive review comment, though. There are a few mentions of the Could you also remove these? And if there is an associated unit test for |
7b6dbdb
to
7968f19
Compare
@alongd the new unit test is failing, see: https://github.com/ReactionMechanismGenerator/RMG-Py/actions/runs/8028132940/job/21932958791?pr=2606#step:11:1990 It seems like you expect benzene to count as 1 ring in a fused ring system:
Should this be so? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #2606 (comment)
7968f19
to
0bb701a
Compare
0bb701a
to
656d684
Compare
Sorry for not getting back to this PR, I'm having trouble with Julia and can't run the test locally. I'm getting:
I tried reinstalling Julia and rebuilding as suggested, but still get the same thing |
Hmm that's vexing - could you try installing a more recent version of Julia? |
This pull request is being automatically marked as stale because it has not received any interaction in the last 90 days. Please leave a comment if this is still a relevant pull request, otherwise it will automatically be closed in 30 days. |
This feature was never merged into main and causes RMG to crush if specified Also removed here from the rmg2to3 script
656d684
to
a7ee82e
Compare
This pull request is being automatically marked as stale because it has not received any interaction in the last 90 days. Please leave a comment if this is still a relevant pull request, otherwise it will automatically be closed in 30 days. |
Motivation or Problem
Sometimes users know they are not interested in ring growth in their model, yet RMG spends significant time on suggesting species with complex fused rings. Using the maximum heavy atoms constraints isn't always helpful since other species with the same Mw could be relevant for the model.
Description of Changes
Added a
maximumFusedRings
key to the constraints dict.A new method was implemented in Molecule along with a test.
Testing
A unit test was added.
FWIW, the feature was also tested locally by generating a model that previously gave many fused ring structures and verifying that they are absent now.
Reviewer Tips
Note that a previously non-implemented constraint was removed from the docs
I saw that this branch fails online due to a Julia installation, I think. Looks unrelated to this feature.