Skip to content

Commit f6b88e1

Browse files
committed
fix RING key error
1 parent fb03f26 commit f6b88e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chebai_graph/preprocessing/fg_detection/fg_aware_rule_based.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def set_ring_properties(mol: Chem.Mol) -> list[list[set[int]]] | None:
3838
if mol is None:
3939
return
4040

41+
for atom in mol.GetAtoms():
42+
atom.SetProp("RING", "")
43+
4144
AllChem.GetSymmSSSR(mol)
4245

4346
######## SET RING PROP ########

0 commit comments

Comments
 (0)