-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rings new #12
Rings new #12
Conversation
if keep_bonding: | ||
hcount -= len(mol_graph.nodes[node]['bonding']) |
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.
This seems rather important, and it disappeared?
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.
because this is actually rather tricky thing. How do you deal with aromatic bonding connectors?
if self.all_atom: | ||
for edge_node in edge: | ||
if self.molecule.nodes[edge_node]['element'] != 'H': | ||
self.molecule.nodes[edge_node]['hcount'] -= 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.
self.molecule.nodes[edge_node]['hcount'] -= 1 | |
self.molecule.nodes[edge_node]['hcount'] -= order |
?
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.
this works is the short answer; having the order there does not presumably due to aromatic bond orders
Hmmn, about the aromatic bond orders. I'd say you round the aromatic bond order down (to 1), and after, if your atom is aromatic you subtract another hydrogen. Let me have a look at the code |
pending pysmiles 2.0