Skip to content

Commit 4319e47

Browse files
committed
nan_to_num numpy2.x compatibility
fix for #10
1 parent 53ca438 commit 4319e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chebai_graph/preprocessing/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ def get_property_value(self, mol: Chem.rdchem.Mol):
155155
features_normalized = generator_normalized.processMol(
156156
mol, Chem.MolToSmiles(mol)
157157
)
158-
np.nan_to_num(features_normalized, copy=False)
158+
features_normalized = np.nan_to_num(features_normalized)
159159
return [features_normalized[1:]]

0 commit comments

Comments
 (0)