Skip to content

Commit

Permalink
fix aromtic assignment bug considering only ds subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrunewald committed May 8, 2024
1 parent 636f7c0 commit cb1c721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysmiles/smiles_helper.py
Expand Up @@ -499,7 +499,7 @@ def mark_aromatic_atoms(mol, atoms=None):
for cycle in cycles:
nodes_in_cycles += cycle

if set(nodes_in_cycles) == set(mol.nodes):
if set(nodes_in_cycles) == set(sub_ds_graph.nodes):
nx.set_node_attributes(mol, {node: True for node in sub_ds_graph.nodes}, 'aromatic')
else:
nx.set_node_attributes(mol, {node: False for node in sub_ds_graph.nodes}, 'aromatic')
Expand Down

0 comments on commit cb1c721

Please sign in to comment.