Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy deprecation of aliases cause some calculation to fail #28

Open
Hutchk02 opened this issue Jan 18, 2023 · 1 comment
Open

Numpy deprecation of aliases cause some calculation to fail #28

Hutchk02 opened this issue Jan 18, 2023 · 1 comment

Comments

@Hutchk02
Copy link

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

@j-samsa
Copy link

j-samsa commented Dec 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants