File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments