Skip to content

Commit 9d81744

Browse files
authored
Merge pull request #8 from ChEB-AI/fix/nan-values
rdkit2d nan values are now correctly filtered
2 parents 03b3d3b + 4f43a37 commit 9d81744

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)
158+
np.nan_to_num(features_normalized, copy=False)
159159
return [features_normalized[1:]]

0 commit comments

Comments
 (0)