Skip to content

Commit 10fe216

Browse files
authored
Merge pull request #18 from ChEB-AI/fix/nan-to-num-conversion
fix numpy conversion error
2 parents 829a448 + fcc07db commit 10fe216

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)