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
AttributeError: 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.
Traceback (most recent call last):
File "", line 1, in
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 319, in predict_dG
score = calc_score(mol_lig, mol_prot, clf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 253, in calc_score
ele_same_dict, ele_opposite_dict = calc_ele_descriptor(
^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 119, in calc_ele_descriptor
ele = Electrostatic(res, mol_lig, mol_prot)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 45, in init
self.side_ele_same, self.side_ele_opposite = self.calc_eletronic(self.side_atoms, self.side_charges)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 81, in calc_eletronic
ele_matrix = self.get_ele_matrix(atoms, charges)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 67, in get_ele_matrix
ele_matrix = np.zeros((len(atoms), len(self.lig_atoms)), dtype=np.float)
File "/home/xchee/.conda/envs/conda_vs/lib/python3.11/site-packages/numpy/init.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: 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 text was updated successfully, but these errors were encountered:
Can i know how i can deal with this issue?
AttributeError: 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.Traceback (most recent call last):
File "", line 1, in
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 319, in predict_dG
score = calc_score(mol_lig, mol_prot, clf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 253, in calc_score
ele_same_dict, ele_opposite_dict = calc_ele_descriptor(
^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/AA_Score.py", line 119, in calc_ele_descriptor
ele = Electrostatic(res, mol_lig, mol_prot)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 45, in init
self.side_ele_same, self.side_ele_opposite = self.calc_eletronic(self.side_atoms, self.side_charges)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 81, in calc_eletronic
ele_matrix = self.get_ele_matrix(atoms, charges)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/fred/oz241/xchee/sandbox_AAScore/utils/electrostatic.py", line 67, in get_ele_matrix
ele_matrix = np.zeros((len(atoms), len(self.lig_atoms)), dtype=np.float)
File "/home/xchee/.conda/envs/conda_vs/lib/python3.11/site-packages/numpy/init.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: 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 text was updated successfully, but these errors were encountered: