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

update for NumPy 2.0 #173

Merged

Conversation

murrayrm
Copy link
Contributor

@murrayrm murrayrm commented Jul 6, 2024

This PR updates bioscrape to work with NumPy 2.0 and seems to be mainly working on Python 3.12.

There is an error in one of the unit tests associated with Cython 3.0's handling of **. The error message says that we need to set the compiler directive 'cpow(True)', but I was not able to do this.

Posting this how so that @ayush9pandey can see if this addresses issue #172.

@murrayrm
Copy link
Contributor Author

murrayrm commented Jul 6, 2024

Unit tests are failing, but it looks like they are very old versions of Python. Probably need to be updated...

@ayush9pandey
Copy link
Collaborator

Thanks! I'll update the unit tests and try to fix the Cython error.

@ayush9pandey
Copy link
Collaborator

Fixed in murrayrm#1

Fix for Cython error in PR biocircuits#173 on Bioscrape
@murrayrm
Copy link
Contributor Author

@ayush9pandey Looks like we are still checking against Python 3.7 and getting an error.

@ayush9pandey
Copy link
Collaborator

Yes, it's failing on Mac OS because it seems that it's defaulting to arm64 architecture for Mac OS now. It should work if we fix the architecture to x64 when testing on mac-os, with py3.7. Fixing it..

@ayush9pandey ayush9pandey self-requested a review July 12, 2024 07:53
Copy link
Collaborator

@ayush9pandey ayush9pandey left a comment

Choose a reason for hiding this comment

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

All tests pass!

@ayush9pandey ayush9pandey merged commit f87daf1 into biocircuits:master Jul 12, 2024
9 checks passed
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