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

simpson in scipy 1.14.0 #219

Closed
rreischke opened this issue Jul 22, 2024 · 1 comment · Fixed by #218
Closed

simpson in scipy 1.14.0 #219

rreischke opened this issue Jul 22, 2024 · 1 comment · Fixed by #218
Assignees

Comments

@rreischke
Copy link

Dear Steven,

Describe the bug
I cannot import hmf anymore with scipy-version 1.14.0.

ImportError: cannot import name 'simps' from 'scipy.integrate' (/home/robert/anaconda3/lib/python3.12/site-packages/scipy/integrate/__init__.py). Did you mean: 'simpson'?

To Reproduce
Fresh installation of hmf with no prior installation of scipy of an older version.

Expected behavior

  • OS: Ubuntu

Additional context
simps is deprecated and should be called simpson in ever call. A quick look into the source code tells me that even keyword also would need to go. In principle simpson can be called in the same manner as numpy.trapz.

Cheers,
Robert

@steven-murray
Copy link
Collaborator

Thanks @rreischke, yes indeed, this will be fixed in #218

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 a pull request may close this issue.

2 participants