-
Notifications
You must be signed in to change notification settings - Fork 21
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
Aromatics, round 2 #41
Conversation
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.
There are two test cases that seem strange to me; otherwise the code looks
For both of the tests you note, the function tested is |
It now de-kekulizes all regions that show DIME, and kekulizes all regions that don't. Part of this change is the removal of the `atoms` argument to the function, and introduction of the `strict` argument. The removal of the `atoms` argument also changed the behaviour of 2 test cases, where all non-saturated atoms would be eligible for making aromatic regions.
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.
I think this is ok, if cgsmiles fails it means our tests suck. In any case I cannot test this branch due to all the rebasing and overwrites.
So far this PR enables the dekekulization of regions that show DIME.
Still TODO:
kekulize
functiondekekulize
functionNote that the (de)kekulize functions will remain separate from the
mark_aromatic_atoms
, because the latter is slightly more clever