PyLipID
PyLipID copied to clipboard
Numpy deprecation of aliases cause some calculation to fail
Hello,
Due to a change/removal of some of Numpy's aliases in the latest version(1.24), some calculations fail to run.
For example, li.collect_residue_contacts() fails with the following error:
"AttributeError: module ‘numpy’ has no attribute ‘int’
This issue is resolved by installing numpy <1.24 or you can update your code to match their deprecation notes: https://numpy.org/doc/stable/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated
in pylipid/func/interactions.py, line 103, change dtype=np.int to dtype=np.int64. Worked well for me and the calculation without throwing an error