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

Regression tests show several DeprecationWarning messages #9229

Open
braingram opened this issue Feb 26, 2025 · 0 comments
Open

Regression tests show several DeprecationWarning messages #9229

braingram opened this issue Feb 26, 2025 · 0 comments

Comments

@braingram
Copy link
Collaborator

From jwst/skymatch/tests/test_skymatch.py::test_user_skyfile:

   /runner/_work/RegressionTests/RegressionTests/jwst/skymatch/skymatch_step.py:284: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    f"Setting sky background of image '{model.meta.filename}' to {float(sky)}."

https://github.com/spacetelescope/RegressionTests/actions/runs/13553243677/job/37881857966#step:30:164

From jwst/extract_1d/soss_extract/tests/test_atoca_utils.py::test_adapt_grid
and jwst/extract_1d/soss_extract/tests/test_atoca_utils.py::test_make_combined_adaptive_grid:

  /runner/_work/RegressionTests/RegressionTests/jwst/extract_1d/soss_extract/tests/test_atoca_utils.py:255: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
    numerical_integral = np.trapz(xsinx(grid), grid)

https://github.com/spacetelescope/RegressionTests/actions/runs/13553243677/job/37881857966#step:30:192

From jwst/resample/resample_utils.py::jwst.resample.resample_utils.decode_context:

    <doctest jwst.resample.resample_utils.decode_context[3]>:1: DeprecationWarning: 'decode_context()' has been deprecated since 1.17.2 and will be removed in a future release. Use 'drizzle.utils.decode_context()' instead.

https://github.com/spacetelescope/RegressionTests/actions/runs/13553243677/job/37881857966#step:30:604

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