Skip to content

Commit 42ef9a2

Browse files
committed
fix: 'int' object has no attribute 'split'
1 parent 331f941 commit 42ef9a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chebai_graph/preprocessing/properties/augmented_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _check_modify_atom_prop_value(
212212
"""
213213
ring_size_str = self._get_atom_prop_value(atom, prop)
214214
if ring_size_str:
215-
ring_sizes = list(map(int, ring_size_str.split("-")))
215+
ring_sizes = list(map(int, str(ring_size_str).split("-")))
216216
# TODO: Decide ring size for atoms belongs to fused rings, rn only max ring size taken
217217
return max(ring_sizes)
218218
else:

0 commit comments

Comments
 (0)