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

integrate.quadrature is deprecated #4

Open
lgiacome opened this issue Jun 20, 2024 · 0 comments
Open

integrate.quadrature is deprecated #4

lgiacome opened this issue Jun 20, 2024 · 0 comments

Comments

@lgiacome
Copy link
Collaborator

Due to deprecation of scipy.integrate.quadrature we get the following warning when running the tests

/Users/giadarol/xsuite_packages/xwakes/pywit/devices.py:178: DeprecationWarning: `scipy.integrate.quadrature` is deprecated as of SciPy 1.12.0and will be removed in SciPy 1.15.0. Please use`scipy.integrate.quad` instead.
    i, err = integrate.quadrature(_integrand_stupakov, half_gap_small, half_gap_big,

We have to replace integrate.quadrature with integrate.quad but we need to make sure that the we use the new function properly.

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

1 participant