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

incompatibility with SciPy 1.14 (removal of scipy.integrate.trapz) #25

Open
slayoo opened this issue Jun 26, 2024 · 3 comments
Open

incompatibility with SciPy 1.14 (removal of scipy.integrate.trapz) #25

slayoo opened this issue Jun 26, 2024 · 3 comments

Comments

@slayoo
Copy link

slayoo commented Jun 26, 2024

Due to removal of scipy.integrate.trapz (scipy/scipy#20278) from SciPy 1.14.0, trying to use PyMieScatt fails at import with:

...site-packages\PyMieScatt\Mie.py:5
      3 import numpy as np
      4 from scipy.special import jv, yv
----> 5 from scipy.integrate import trapz
      6 import warnings
      8 def coerceDType(d):

ImportError: cannot import name 'trapz' from 'scipy.integrate' (...site-packages\scipy\integrate\__init__.py)
@slayoo slayoo changed the title incompatibility with SciPy 1.14 () incompatibility with SciPy 1.14 (removal of scipy.integrate.trapz) Jun 26, 2024
@natsuwater
Copy link

Hi,

I've made a pull request on this. #26

@slayoo
Copy link
Author

slayoo commented Jul 9, 2024

Thanks!

@joelager
Copy link

joelager commented Aug 8, 2024

Was able to fix this locally by replacing 'trapz' with 'trapezoid' in Mie.py and Inverse.py

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

No branches or pull requests

3 participants