Skip to content

Conversation

@zm711
Copy link
Contributor

@zm711 zm711 commented Oct 14, 2023

Also np.trapz will be deprecated, and the recommendation is to switch to using a scipy function instead. I can delete trapz in this PR if you want or just leave it alone until it becomes a hard error.

@apdavison
Copy link
Contributor

thanks for this @zm711

I would be reluctant to add scipy as a dependency, since it's not exactly lightweight; rather, I think we should copy the implementation of np.trapz into quantities.

@zm711
Copy link
Contributor Author

zm711 commented Oct 16, 2023

@apdavison,

I can give a stab at making trapz in quantities, but let me look at the source code to see how involved it will be.

The one failing test seems to be a build error with Cython (old numpy and old python), but doesn't seem to be anything I did. Could you rerun the tests once to see if it repeats (or take a look and see if you understand the error better than I do?)

@zm711
Copy link
Contributor Author

zm711 commented Oct 20, 2023

I was able to find that there is a build issue with cython and numpy 1.19.0 that can occur in building.

@apdavison apdavison merged commit 224d8ca into python-quantities:master Dec 8, 2023
@zm711 zm711 deleted the numpy-updates branch December 8, 2023 16:03
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.

2 participants