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 version #177

Open
quanganhct opened this issue Apr 2, 2024 · 1 comment
Open

numpy version #177

quanganhct opened this issue Apr 2, 2024 · 1 comment

Comments

@quanganhct
Copy link

In KCI.py

num_eig = np.int(np.floor(T / 2))
raised Attribute Error

AttributeError: module 'numpy' has no attribute 'int'. np.intwas a deprecated alias for the builtinint. To avoid this error in existing code, use intby itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g. np.int64ornp.int32to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:

@kunwuz
Copy link
Collaborator

kunwuz commented Apr 8, 2024

Hi, thanks for reporting. It should have been fixed in PR #156. Could you please try using the latest version and see if that issue remains?

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