Skip to content

Commit 6cd23c4

Browse files
author
Oliver Scott
committed
fragmentation bug fix
1 parent de7b39f commit 6cd23c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scaffoldgraph/core/fragment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def fragment(self, scaffold):
145145
# Collect all removable atoms in the molecule
146146
remove_atoms = set()
147147
for index, atom in zip(ring.aix, ring.atoms):
148-
if rings.info.NumAtomRings(index) == 1 or any([not b.IsInRing() for b in atom.GetBonds()]):
148+
if rings.info.NumAtomRings(index) == 1:
149149
if atom.GetDegree() > 2: # Evoke linker collection
150150
collect_linker_atoms(edit.GetAtomWithIdx(index), remove_atoms)
151151
else: # Add ring atom to removable set
@@ -368,7 +368,7 @@ def get_scaffold_frags(frag):
368368
try:
369369
# frag.ClearComputedProps()
370370
# frag.UpdatePropertyCache()
371-
# Chem.GetSymmSSSR(frag)
371+
# FastFindRings(frag)
372372
partial_sanitization(frag)
373373
except ValueError as e:
374374
# This error is caught as dissecting an aromatic ring system,

0 commit comments

Comments
 (0)