-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add aromatic_matching=False
to isometry check
#260
Conversation
Codecov Report
Additional details and impacted files |
I looked through the code to make sure that this wouldn't cause any unanticipated surprises and it looks good at a first pass. I'd approve this PR if a test is added. |
Just a note to myself: adding a test like
The molecule in the linked issue appears to trigger these conditions via having a proton hop around within an aromatic ring |
Test added! If I revert the |
Co-authored-by: Jeff Wagner <jeffrey.wagner+github@openforcefield.org>
… it would sometimes return None) and update tests
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.
Thanks for making the great test. I also had your confusion about the return value of ComponentResult.add_molecule
, and I realized it was clearly a bug, since instead of returning a bool
, it would return None
, and assert(None)
quacked like assert(False)
. I've fixed that and now everything seems hunky dorey, and I've added a little more testing for it as well. I've updated the release notes saying as much.
PS in a previous commend you said
The molecule in the linked issue appears to trigger these conditions via having a proton hop around within an aromatic ring
and I'll clarify for future readers that it's a double bond/formal charge that's hopping around, not a proton!
Great job guys! |
Description
Taking @lilyminium's suggestion in #255 and just seeing what happens in tests.
Not squatting on this at all; if somebody wants to move this forward please feel free to use this branch/PR.
Todos
Notable points that this PR has either accomplished or will accomplish.
aromatic_matching=False
to isometry checkStatus