You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
output:
module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
my environment:
python --version
Python 3.11.3
numpy 1.24.3
I am not sure if i have mistake somewhere and i am new to mordred.
Would appreciate any comments or suggestions.
Rgds
Kit
The text was updated successfully, but these errors were encountered:
Description:
I tried to run an example from the mordred documentation page but got into error showing "module 'numpy' has no attribute 'float'."
code:
from rdkit import Chem
from mordred import Calculator, descriptors
calc = Calculator(descriptors, ignore_3D=True)
len(calc.descriptors)
len(Calculator(descriptors, ignore_3D=True, version="1.0.0"))
mol = Chem.MolFromSmiles('c1ccccc1')
abc=calc(mol)
print(abc[0].error)
output:
module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
my environment:
python --version
Python 3.11.3
numpy 1.24.3
I am not sure if i have mistake somewhere and i am new to mordred.
Would appreciate any comments or suggestions.
Rgds
Kit
The text was updated successfully, but these errors were encountered: