Skip to content

Fix dtype usage before SciPy 1.17 #1950

@tbowers7

Description

@tbowers7

There are several warnings that crop up in the PypeIt unit tests about deprecated dtype usages that will need to be addressed before the release of SciPy 1.17 (around the start of 2026, based on recent release cycles -- SciPy 1.16 was released in late June 2025).

pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
DeprecationWarning: dtype=>f4 is not supported by correlate and will raise an error in SciPy 1.17.0. Supported dtypes are: boolean, integer, `np.float16`,`np.float32`, `np.float64`, `np.complex64`, `np.complex128`. (wvutils.py:612)

pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
DeprecationWarning: dtype=>f4 is not supported by correlate and will raise an error in SciPy 1.17.0. Supported dtypes are: boolean, integer, `np.float16`,`np.float32`, `np.float64`, `np.complex64`, `np.complex128`. (_signaltools.py:283)

pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
pypeit/tests/test_runpypeit.py::test_run_pypeit
DeprecationWarning: dtype=>f4 is not supported by choose_conv_method and will raise an error in SciPy 1.17.0. Supported dtypes are: boolean, integer, `np.float16`,`np.float32`, `np.float64`, `np.complex64`, `np.complex128`. (_signaltools.py:1538)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions