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

Compatibility with numpy 1.24 #325

Closed
wants to merge 4 commits into from
Closed

Compatibility with numpy 1.24 #325

wants to merge 4 commits into from

Conversation

gedeck
Copy link

@gedeck gedeck commented Jan 22, 2023

With the latest release of numpy 1.24.0, numpy deprecated and removed np.int. This PR replaces np.int with np.int_. The change was tested using numpy 1.23.5 and numpy 1.24.1 with Python 3.10.9.

If you merge the PR, please release a new version of pyGAM on pypi.

Closes #326

Copy link

@Alexander-Serov Alexander-Serov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the same problem. If I understand correctly, just using int instead of np.int should solve the problem. Is there any advantage for np.int_?

@gedeck
Copy link
Author

gedeck commented Mar 8, 2023

Having the same problem. If I understand correctly, just using int instead of np.int should solve the problem. Is there any advantage for np.int_?

According to the numpy documentation, int is interpreted as np.int_. I make this change.

@Alexander-Serov
Copy link

Thanks! This is how I'm reading numpy's message. 😀

Copy link

@Alexander-Serov Alexander-Serov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding time!
Let's hope someone merges it. 🤞🏻 Need someone with write access to the repo, right?

@Alexander-Serov
Copy link

@dswah Could you approve?

@gedeck
Copy link
Author

gedeck commented Apr 17, 2023

Looks like the necessary changes were made to the main code and a new version released recently. I will close the PR.

Thank you for getting the new version out.

@gedeck gedeck closed this Apr 17, 2023
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

Successfully merging this pull request may close these issues.

Code is incompatible with numpy 1.24.1
2 participants