-
Notifications
You must be signed in to change notification settings - Fork 855
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
Fixes #7306 #7510
Fixes #7306 #7510
Conversation
Do not cross bonds which were previously aromatic
@rvianello here's a proposed fix for this issue |
@greglandrum thank you for this fix, it worked as desired on a couple of structures I tested. Thank you also for the explanation posted to #7306. |
Merge branch 'master' into fix/github7306
@@ -113,7 +113,8 @@ void write_template(std::ostringstream &res, RDKit::ROMol &tpl) { | |||
} | |||
RDKit::FileParserUtils::moveAdditionalPropertiesToSGroups(trwmol); | |||
|
|||
res << RDKit::FileParserUtils::getV3000CTAB(trwmol, -1); | |||
boost::dynamic_bitset<> wasAromatic(trwmol.getNumBonds()); | |||
res << RDKit::FileParserUtils::getV3000CTAB(trwmol, wasAromatic, -1); |
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.
Due to the new getV3000CTab internally using the wasAromatic bitset, does this need to be changed or can it be the original:
res << RDKit::FileParserUtils::getV3000CTAB(trwmol, -1);
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.
you're right; there's no reason to change this.
@bp-kelley I made the change you suggested |
* Fixes rdkit#7306 Do not cross bonds which were previously aromatic * revert one of the test changes * change in response to review --------- Co-authored-by: Riccardo Vianello <riccardo.vianello@gmail.com>
Do not cross bonds which were previously aromatic