PyLipID icon indicating copy to clipboard operation
PyLipID copied to clipboard

Numpy deprecation of aliases cause some calculation to fail

Open Hutchk02 opened this issue 3 years ago • 1 comments

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

Hutchk02 avatar Jan 18 '23 18:01 Hutchk02

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

j-samsa avatar Dec 08 '23 16:12 j-samsa