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

Add compatibility with Numpy 1.26 and 2.0 #341

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

toni-neurosc
Copy link
Collaborator

Hi @timonmerk, I saw that you bumped the package requirements to Numpy 2.0.0 and Pandas 2.2.2, which is fine I think, but maybe it could cause conflicts for end-users. Like, I already found that StreamLit does not support Numpy 2.0.0 yet, so it rolled back to 1.26 when I installed it.

So I added code to be compatible with both old and new versions of Python, all tests are passing and pip is installing the requirements just fine.

I changed the requirements back to Numpy 1.26 (for Python 3.12 compatibility) and Pandas 2.0.0 just to pick a round number.

Copy link
Contributor

@timonmerk timonmerk left a comment

Choose a reason for hiding this comment

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

Makes sense! Thanks!

@timonmerk timonmerk merged commit f3a2d4e into main Jun 18, 2024
6 checks passed
@toni-neurosc toni-neurosc deleted the numpy_retrocompat branch June 18, 2024 11:18
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.

None yet

2 participants