Skip to content

Commit 22ad4f2

Browse files
committed
fix: adjust sticky_smiles right terminal behavior
- Remove unused `keep_bond_right` parameter to align with no-trailing-bond convention.
1 parent 034b7c6 commit 22ad4f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chython/algorithms/groups/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def sticky_fragments(self, role: Optional[str] = None, *,
410410
# one bond token (two would be "2 bonds in a row" -> invalid SMILES).
411411
left = product.sticky_smiles(left=n_at, remove_left=True, keep_bond_left=True,
412412
tries=tries, hydrogens=hydrogens)
413-
right = product.sticky_smiles(right=n_at, remove_right=True, keep_bond_right=False,
413+
right = product.sticky_smiles(right=n_at, remove_right=True,
414414
tries=tries, hydrogens=hydrogens)
415415
yield StickyFragment(role_name, left, right, str(product))
416416

0 commit comments

Comments
 (0)