openfold icon indicating copy to clipboard operation
openfold copied to clipboard

code uses np.object, which is deprecated in numpy version 1.24

Open michalozeryflato opened this issue 2 years ago • 1 comments

I received the following nested exception: File "/dccstor/mm_hcls/usr/ozery/miniconda/envs/fuse_2/lib/python3.8/site-packages/openfold/data/data_pipeline.py", line 23, in from openfold.data import templates, parsers, mmcif_parsing File "/dccstor/mm_hcls/usr/ozery/miniconda/envs/fuse_2/lib/python3.8/site-packages/openfold/data/templates.py", line 88, in "template_domain_names": np.object, File "/dccstor/mm_hcls/usr/ozery/miniconda/envs/fuse_2/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr raise AttributeError(former_attrs[attr]) AttributeError: module 'numpy' has no attribute 'object'. np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe. 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

michalozeryflato avatar Apr 20 '23 18:04 michalozeryflato

Yep, same issue.

DomML avatar Mar 20 '24 14:03 DomML