Skip to content

Commit

Permalink
Add comment based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
pckroon committed Nov 22, 2024
1 parent 5d85327 commit fcca1c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysmiles/read_smiles.py
Original file line number Diff line number Diff line change
@@ -296,7 +296,10 @@ def read_smiles(smiles, explicit_hydrogen=False, zero_order_bonds=True,
LOGGER.warning(msg)
elif element != '*' and bonds_missing(mol, node):
attrs = mol.nodes[node]
node_position = (attrs['_pos'] - 5, attrs['_pos'] + len(attrs['_atom_str']) + 5)
# Grab some of the smiles string for debugging purposes
surrounding_characters = 5
node_position = (attrs['_pos'] - surrounding_characters,
attrs['_pos'] + len(attrs['_atom_str']) + surrounding_characters)
if node_position[0] < 0:
left_idx = 0
prefix = ''

0 comments on commit fcca1c2

Please sign in to comment.