mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Numpy 2 Support (#7531)
* facilitate numpy 2.0 support * so that all tests run smoothly * not yet ready for this * w/ casting to bool * remove formatting changes from this PR
This commit is contained in:
@@ -48,7 +48,9 @@ def assignFilters(data, nameSmilesColumn='smiles'):
|
||||
sma = Chem.MolFromSmarts(NO_filter, mergeHs=True)
|
||||
|
||||
for smi in data[nameSmilesColumn]:
|
||||
qc, NO_filter, fracNO, co, sc, sm = [np.NaN] * 6
|
||||
qc, NO_filter, fracNO, co, sc, sm = [np.nan] * 6
|
||||
|
||||
# The following files require numpy and were explicitely checked for their compatibility.
|
||||
|
||||
try:
|
||||
mol = Chem.MolFromSmiles(smi)
|
||||
|
||||
Reference in New Issue
Block a user