scipy: TST: test failures on windows with SciPy 1.14.0rc1

With the in-progress fix for https://github.com/scipy/scipy/issues/20840, I now get the following failures in https://github.com/conda-forge/scipy-feedstock/pull/277:

=========================== short test summary info ===========================
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[-1.0-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[-1.0-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.7-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.7-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.5-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.5-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.25-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.25-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.0075-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1_ic[0.0075-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[-1.0-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[-1.0-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.7-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.7-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.5-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.5-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.25-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.25-complex128] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.0075-complex64] - ValueError: Incorrect type.
FAILED signal/tests/test_splines.py::TestSymIIR::test_symiir1[0.0075-complex128] - ValueError: Incorrect type.
FAILED stats/tests/test_stats.py::TestChisquare::test_chiquare_data_types_attributes[1000000-int32-numpy] - ValueError: data type <class 'numpy.int32'> not inexact
= 21 failed, 61157 passed, 2821 skipped, 271 xfailed, 14 xpassed, 106 warnings in 788.57s (0:13:08) =

More detailed stacktrace:

================================== FAILURES ===================================
_________________ TestSymIIR.test_symiir1_ic[-1.0-complex64] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 1e-06
        dtype      = <class 'numpy.complex64'>
        expected   = array([[6.6666617+0.j]], dtype=complex64)
        n_exp      = 86
        precision  = -1.0
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EB440>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
_________________ TestSymIIR.test_symiir1_ic[-1.0-complex128] _________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 1e-11
        dtype      = <class 'numpy.complex128'>
        expected   = array([[6.66666667+0.j]])
        n_exp      = 156
        precision  = -1.0
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EB500>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
__________________ TestSymIIR.test_symiir1_ic[0.7-complex64] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.7
        dtype      = <class 'numpy.complex64'>
        expected   = array([[3.186625+0.j]], dtype=complex64)
        n_exp      = 3
        precision  = 0.7
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EB740>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j], dtype=complex64)
_________________ TestSymIIR.test_symiir1_ic[0.7-complex128] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.7
        dtype      = <class 'numpy.complex128'>
        expected   = array([[3.186625+0.j]])
        n_exp      = 3
        precision  = 0.7
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EB800>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
__________________ TestSymIIR.test_symiir1_ic[0.5-complex64] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.5
        dtype      = <class 'numpy.complex64'>
        expected   = array([[4.1523366+0.j]], dtype=complex64)
        n_exp      = 5
        precision  = 0.5
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EBA40>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j], dtype=complex64)
_________________ TestSymIIR.test_symiir1_ic[0.5-complex128] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.5
        dtype      = <class 'numpy.complex128'>
        expected   = array([[4.15233656+0.j]])
        n_exp      = 5
        precision  = 0.5
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EBB00>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
_________________ TestSymIIR.test_symiir1_ic[0.25-complex64] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.25
        dtype      = <class 'numpy.complex64'>
        expected   = array([[5.354171+0.j]], dtype=complex64)
        n_exp      = 9
        precision  = 0.25
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EBD70>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j], dtype=complex64)
_________________ TestSymIIR.test_symiir1_ic[0.25-complex128] _________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.25
        dtype      = <class 'numpy.complex128'>
        expected   = array([[5.35417064+0.j]])
        n_exp      = 9
        precision  = 0.25
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C675EBE30>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j])
________________ TestSymIIR.test_symiir1_ic[0.0075-complex64] _________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.0075
        dtype      = <class 'numpy.complex64'>
        expected   = array([[6.629912+0.j]], dtype=complex64)
        n_exp      = 31
        precision  = 0.0075
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766CB00>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
________________ TestSymIIR.test_symiir1_ic[0.0075-complex128] ________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:55: in test_symiir1_ic
    assert_allclose(symiirorder1_ic(x, b, precision), expected,
E   ValueError: Incorrect type.
        b          = 0.85
        c_precision = 0.0075
        dtype      = <class 'numpy.complex128'>
        expected   = array([[6.62991184+0.j]])
        n_exp      = 31
        precision  = 0.0075
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766C080>
        x          = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
___________________ TestSymIIR.test_symiir1[-1.0-complex64] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 1e-06
        comp1      = array([6.66666174e+00+0.j, 5.66666269e+00+0.j, 4.81666327e+00+0.j,
       4.09416389e+00+0.j, 3.48003936e+00+0.j, 2.95...74436e-13+0.j, 9.77282762e-14+0.j, 8.30690429e-14+0.j,
       7.06086868e-14+0.j, 6.00173868e-14+0.j], dtype=complex64)
        comp2      = array([ 0.00000000e+00+0.j, -5.66666651e+00+0.j, -4.81666660e+00+0.j,
       -4.09416676e+00+0.j, -3.48004174e+00+0.j,...8e-13+0.j, -9.77283440e-14+0.j, -8.30690903e-14+0.j,
       -7.06087342e-14+0.j, -6.00174275e-14+0.j], dtype=complex64)
        comp3      = array([0.       +0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        dtype      = <class 'numpy.complex64'>
        exp_out    = array([6.666666 +0.j, 6.666666 +0.j, 6.666666 +0.j, 6.666666 +0.j,
       6.666666 +0.j, 6.666666 +0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        expected_fwd = array([6.6666617+0.j, 6.6666627+0.j, 6.666663 +0.j, 6.6666636+0.j,
       6.666664 +0.j, 6.6666646+0.j, 6.666665 +0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        i          = 199
        initial    = np.complex64(6.6666617+0j)
        n          = 200
        n_exp      = 86
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....1.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j], dtype=complex64)
        precision  = -1.0
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766C170>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
        sym_cond   = np.complex64(6.6666665+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = -1.0
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j....+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]],
      dtype=complex64)
        squeeze_dim = True
        z1         = 0.85
__________________ TestSymIIR.test_symiir1[-1.0-complex128] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 1e-11
        comp1      = array([6.66666667e+00+0.j, 5.66666667e+00+0.j, 4.81666667e+00+0.j,
       4.09416667e+00+0.j, 3.48004167e+00+0.j, 2.95...0.j,
       1.14973898e-13+0.j, 9.77278132e-14+0.j, 8.30686412e-14+0.j,
       7.06083450e-14+0.j, 6.00170933e-14+0.j])
        comp2      = array([ 0.00000000e+00+0.j, -5.66666667e+00+0.j, -4.81666667e+00+0.j,
       -4.09416667e+00+0.j, -3.48004167e+00+0.j,...       -1.14973898e-13+0.j, -9.77278132e-14+0.j, -8.30686412e-14+0.j,
       -7.06083450e-14+0.j, -6.00170933e-14+0.j])
        comp3      = array([0.        +0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        dtype      = <class 'numpy.complex128'>
        exp_out    = array([6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        expected_fwd = array([6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        i          = 199
        initial    = np.complex128(6.666666666611371+0j)
        n          = 200
        n_exp      = 156
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....0.j, 190.+0.j, 191.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j])
        precision  = -1.0
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766C8F0>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
        sym_cond   = np.complex128(6.666666666666664+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = -1.0
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j...+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]])
        squeeze_dim = True
        z1         = 0.85
___________________ TestSymIIR.test_symiir1[0.7-complex64] ____________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.7
        comp1      = array([3.18662500e+00+0.j, 2.70863128e+00+0.j, 2.30233669e+00+0.j,
       1.95698607e+00+0.j, 1.66343820e+00+0.j, 1.41...71036e-14+0.j, 4.67135384e-14+0.j, 3.97065125e-14+0.j,
       3.37505360e-14+0.j, 2.86879556e-14+0.j], dtype=complex64)
        comp2      = array([ 0.00000000e+00+0.j, -5.66666651e+00+0.j, -4.81666660e+00+0.j,
       -4.09416676e+00+0.j, -3.48004174e+00+0.j,...8e-13+0.j, -9.77283440e-14+0.j, -8.30690903e-14+0.j,
       -7.06087342e-14+0.j, -6.00174275e-14+0.j], dtype=complex64)
        comp3      = array([0.       +0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        dtype      = <class 'numpy.complex64'>
        exp_out    = array([4.7855644+0.j, 5.06773  +0.j, 5.3075705+0.j, 5.511435 +0.j,
       5.68472  +0.j, 5.832012 +0.j, 5.9572105+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        expected_fwd = array([3.186625 +0.j, 3.7086313+0.j, 4.1523366+0.j, 4.5294857+0.j,
       4.850063 +0.j, 5.122554 +0.j, 5.354171 +0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        i          = 199
        initial    = np.complex64(3.186625+0j)
        n          = 200
        n_exp      = 3
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....1.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j], dtype=complex64)
        precision  = 0.7
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766CB90>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
        sym_cond   = np.complex64(6.6666665+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.7
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j....+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]],
      dtype=complex64)
        squeeze_dim = True
        z1         = 0.85
___________________ TestSymIIR.test_symiir1[0.7-complex128] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.7
        comp1      = array([3.18662500e+00+0.j, 2.70863125e+00+0.j, 2.30233656e+00+0.j,
       1.95698608e+00+0.j, 1.66343817e+00+0.j, 1.41...0.j,
       5.49568046e-14+0.j, 4.67132839e-14+0.j, 3.97062913e-14+0.j,
       3.37503476e-14+0.j, 2.86877955e-14+0.j])
        comp2      = array([ 0.00000000e+00+0.j, -5.66666667e+00+0.j, -4.81666667e+00+0.j,
       -4.09416667e+00+0.j, -3.48004167e+00+0.j,...       -1.14973898e-13+0.j, -9.77278132e-14+0.j, -8.30686412e-14+0.j,
       -7.06083450e-14+0.j, -6.00170933e-14+0.j])
        comp3      = array([0.        +0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        dtype      = <class 'numpy.complex128'>
        exp_out    = array([4.78556306+0.j, 5.0677286 +0.j, 5.30756931+0.j, 5.51143392+0.j,
       5.68471883+0.j, 5.832011  +0.j, 5.957209...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        expected_fwd = array([3.186625  +0.j, 3.70863125+0.j, 4.15233656+0.j, 4.52948608+0.j,
       4.85006317+0.j, 5.12255369+0.j, 5.354170...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        i          = 199
        initial    = np.complex128(3.1866250000000003+0j)
        n          = 200
        n_exp      = 3
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....0.j, 190.+0.j, 191.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j])
        precision  = 0.7
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766CC50>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
        sym_cond   = np.complex128(6.666666666666633+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.7
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j...+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]])
        squeeze_dim = True
        z1         = 0.85
___________________ TestSymIIR.test_symiir1[0.5-complex64] ____________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.5
        comp1      = array([4.15233660e+00+0.j, 3.52948618e+00+0.j, 3.00006342e+00+0.j,
       2.55005383e+00+0.j, 2.16754580e+00+0.j, 1.84...19397e-14+0.j, 6.08701457e-14+0.j, 5.17396320e-14+0.j,
       4.39786892e-14+0.j, 3.73818848e-14+0.j], dtype=complex64)
        comp2      = array([ 0.00000000e+00+0.j, -5.66666651e+00+0.j, -4.81666660e+00+0.j,
       -4.09416676e+00+0.j, -3.48004174e+00+0.j,...8e-13+0.j, -9.77283440e-14+0.j, -8.30690903e-14+0.j,
       -7.06087342e-14+0.j, -6.00174275e-14+0.j], dtype=complex64)
        comp3      = array([0.       +0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        dtype      = <class 'numpy.complex64'>
        exp_out    = array([5.3075705+0.j, 5.511435 +0.j, 5.68472  +0.j, 5.832012 +0.j,
       5.9572105+0.j, 6.0636287+0.j, 6.154084 +0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        expected_fwd = array([4.1523366+0.j, 4.529486 +0.j, 4.8500633+0.j, 5.122554 +0.j,
       5.354171 +0.j, 5.551045 +0.j, 5.718388 +0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        i          = 199
        initial    = np.complex64(4.1523366+0j)
        n          = 200
        n_exp      = 5
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....1.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j], dtype=complex64)
        precision  = 0.5
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766CE90>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
        sym_cond   = np.complex64(6.6666665+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.5
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j....+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]],
      dtype=complex64)
        squeeze_dim = True
        z1         = 0.85
___________________ TestSymIIR.test_symiir1[0.5-complex128] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.5
        comp1      = array([4.15233656e+00+0.j, 3.52948608e+00+0.j, 3.00006317e+00+0.j,
       2.55005369e+00+0.j, 2.16754564e+00+0.j, 1.84...0.j,
       7.16115480e-14+0.j, 6.08698158e-14+0.j, 5.17393434e-14+0.j,
       4.39784419e-14+0.j, 3.73816756e-14+0.j])
        comp2      = array([ 0.00000000e+00+0.j, -5.66666667e+00+0.j, -4.81666667e+00+0.j,
       -4.09416667e+00+0.j, -3.48004167e+00+0.j,...       -1.14973898e-13+0.j, -9.77278132e-14+0.j, -8.30686412e-14+0.j,
       -7.06083450e-14+0.j, -6.00170933e-14+0.j])
        comp3      = array([0.        +0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        dtype      = <class 'numpy.complex128'>
        exp_out    = array([5.30756931+0.j, 5.51143392+0.j, 5.68471883+0.j, 5.832011  +0.j,
       5.95720935+0.j, 6.06362795+0.j, 6.154083...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        expected_fwd = array([4.15233656+0.j, 4.52948608+0.j, 4.85006317+0.j, 5.12255369+0.j,
       5.35417064+0.j, 5.55104504+0.j, 5.718388...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        i          = 199
        initial    = np.complex128(4.1523365625+0j)
        n          = 200
        n_exp      = 5
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....0.j, 190.+0.j, 191.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j])
        precision  = 0.5
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766CF80>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
        sym_cond   = np.complex128(6.666666666666642+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.5
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j...+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]])
        squeeze_dim = True
        z1         = 0.85
___________________ TestSymIIR.test_symiir1[0.25-complex64] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.25
        comp1      = array([5.3541708e+00+0.j, 4.5510454e+00+0.j, 3.8683887e+00+0.j,
       3.2881303e+00+0.j, 2.7949107e+00+0.j, 2.3756742...9.2338985e-14+0.j, 7.8488140e-14+0.j, 6.6714924e-14+0.j,
       5.6707687e-14+0.j, 4.8201535e-14+0.j], dtype=complex64)
        comp2      = array([ 0.00000000e+00+0.j, -5.66666651e+00+0.j, -4.81666660e+00+0.j,
       -4.09416676e+00+0.j, -3.48004174e+00+0.j,...8e-13+0.j, -9.77283440e-14+0.j, -8.30690903e-14+0.j,
       -7.06087342e-14+0.j, -6.00174275e-14+0.j], dtype=complex64)
        comp3      = array([0.       +0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        dtype      = <class 'numpy.complex64'>
        exp_out    = array([5.957211 +0.j, 6.063629 +0.j, 6.1540847+0.j, 6.230972 +0.j,
       6.296326 +0.j, 6.3518777+0.j, 6.399096 +0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        expected_fwd = array([5.354171 +0.j, 5.5510454+0.j, 5.7183886+0.j, 5.86063  +0.j,
       5.9815354+0.j, 6.0843053+0.j, 6.1716595+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        i          = 199
        initial    = np.complex64(5.354171+0j)
        n          = 200
        n_exp      = 9
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....1.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j], dtype=complex64)
        precision  = 0.25
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766D1C0>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
        sym_cond   = np.complex64(6.6666665+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.25
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j....+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]],
      dtype=complex64)
        squeeze_dim = True
        z1         = 0.85
__________________ TestSymIIR.test_symiir1[0.25-complex128] ___________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.25
        comp1      = array([5.35417064e+00+0.j, 4.55104504e+00+0.j, 3.86838829e+00+0.j,
       3.28813004e+00+0.j, 2.79491054e+00+0.j, 2.37...0.j,
       9.23384802e-14+0.j, 7.84877082e-14+0.j, 6.67145520e-14+0.j,
       5.67073692e-14+0.j, 4.82012638e-14+0.j])
        comp2      = array([ 0.00000000e+00+0.j, -5.66666667e+00+0.j, -4.81666667e+00+0.j,
       -4.09416667e+00+0.j, -3.48004167e+00+0.j,...       -1.14973898e-13+0.j, -9.77278132e-14+0.j, -8.30686412e-14+0.j,
       -7.06083450e-14+0.j, -6.00170933e-14+0.j])
        comp3      = array([0.        +0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        dtype      = <class 'numpy.complex128'>
        exp_out    = array([5.95720935+0.j, 6.06362795+0.j, 6.15408376+0.j, 6.23097119+0.j,
       6.29632552+0.j, 6.35187669+0.j, 6.399095...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        expected_fwd = array([5.35417064+0.j, 5.55104504+0.j, 5.71838829+0.j, 5.86063004+0.j,
       5.98153554+0.j, 6.08430521+0.j, 6.171659...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        i          = 199
        initial    = np.complex128(5.354170637728515+0j)
        n          = 200
        n_exp      = 9
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....0.j, 190.+0.j, 191.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j])
        precision  = 0.25
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766D2B0>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
        sym_cond   = np.complex128(6.666666666666653+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.25
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j...+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]])
        squeeze_dim = True
        z1         = 0.85
__________________ TestSymIIR.test_symiir1[0.0075-complex64] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.0075
        comp1      = array([6.62991190e+00+0.j, 5.63542509e+00+0.j, 4.79011154e+00+0.j,
       4.07159472e+00+0.j, 3.46085548e+00+0.j, 2.94...40639e-13+0.j, 9.71895497e-14+0.j, 8.26111233e-14+0.j,
       7.02194582e-14+0.j, 5.96865425e-14+0.j], dtype=complex64)
        comp2      = array([ 0.00000000e+00+0.j, -5.66666651e+00+0.j, -4.81666660e+00+0.j,
       -4.09416676e+00+0.j, -3.48004174e+00+0.j,...8e-13+0.j, -9.77283440e-14+0.j, -8.30690903e-14+0.j,
       -7.06087342e-14+0.j, -6.00174275e-14+0.j], dtype=complex64)
        comp3      = array([0.       +0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        dtype      = <class 'numpy.complex64'>
        exp_out    = array([6.6468   +0.j, 6.6497803+0.j, 6.652313 +0.j, 6.6544666+0.j,
       6.6562967+0.j, 6.657852 +0.j, 6.6591744+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        expected_fwd = array([6.629912 +0.j, 6.635425 +0.j, 6.6401114+0.j, 6.6440945+0.j,
       6.64748  +0.j, 6.650358 +0.j, 6.6528044+0.j,....6666665+0.j, 6.6666665+0.j,
       6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j, 6.6666665+0.j],
      dtype=complex64)
        i          = 199
        initial    = np.complex64(6.629912+0j)
        n          = 200
        n_exp      = 31
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....1.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j], dtype=complex64)
        precision  = 0.0075
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766D4F0>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ... 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j],
      dtype=complex64)
        sym_cond   = np.complex64(6.6666665+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.0075
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j....+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]],
      dtype=complex64)
        squeeze_dim = True
        z1         = 0.85
_________________ TestSymIIR.test_symiir1[0.0075-complex128] __________________
[gw1] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\signal\tests\test_splines.py:151: in test_symiir1
    out = symiirorder1(signal, c0, z1, precision)
        c0         = 0.15
        c_precision = 0.0075
        comp1      = array([6.62991184e+00+0.j, 5.63542507e+00+0.j, 4.79011131e+00+0.j,
       4.07159461e+00+0.j, 3.46085542e+00+0.j, 2.94...0.j,
       1.14340021e-13+0.j, 9.71890179e-14+0.j, 8.26106652e-14+0.j,
       7.02190654e-14+0.j, 5.96862056e-14+0.j])
        comp2      = array([ 0.00000000e+00+0.j, -5.66666667e+00+0.j, -4.81666667e+00+0.j,
       -4.09416667e+00+0.j, -3.48004167e+00+0.j,...       -1.14973898e-13+0.j, -9.77278132e-14+0.j, -8.30686412e-14+0.j,
       -7.06083450e-14+0.j, -6.00170933e-14+0.j])
        comp3      = array([0.        +0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.666666...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        dtype      = <class 'numpy.complex128'>
        exp_out    = array([6.64679919+0.j, 6.64977931+0.j, 6.65231242+0.j, 6.65446555+0.j,
       6.65629572+0.j, 6.65785136+0.j, 6.659173...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        expected_fwd = array([6.62991184+0.j, 6.63542507+0.j, 6.64011131+0.j, 6.64409461+0.j,
       6.64748042+0.j, 6.65035836+0.j, 6.652804...6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j,
       6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j, 6.66666667+0.j])
        i          = 199
        initial    = np.complex128(6.629911841285097+0j)
        n          = 200
        n_exp      = 31
        pos        = array([  0.+0.j,   1.+0.j,   2.+0.j,   3.+0.j,   4.+0.j,   5.+0.j,
         6.+0.j,   7.+0.j,   8.+0.j,   9.+0.j,  10....0.j, 190.+0.j, 191.+0.j,
       192.+0.j, 193.+0.j, 194.+0.j, 195.+0.j, 196.+0.j, 197.+0.j,
       198.+0.j, 199.+0.j])
        precision  = 0.0075
        self       = <scipy.signal.tests.test_splines.TestSymIIR object at 0x0000029C6766D5B0>
        signal     = array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, ...1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
       1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])
        sym_cond   = np.complex128(6.666666666666664+0j)
        z1         = 0.85
..\_test_env\Lib\site-packages\scipy\signal\_splines.py:55: in symiirorder1
    y0 = symiirorder1_ic(signal, z1, precision)
E   ValueError: Incorrect type.
        c0         = 0.15
        precision  = 0.0075
        signal     = array([[1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j...+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j,
        1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]])
        squeeze_dim = True
        z1         = 0.85
___ TestChisquare.test_chiquare_data_types_attributes[1000000-int32-numpy] ____
[gw0] win32 -- Python 3.12.3 %PREFIX%\python.exe
..\_test_env\Lib\site-packages\scipy\stats\tests\test_stats.py:4274: in test_chiquare_data_types_attributes
    res = stats.chisquare(obs, exp)
        dtype      = <class 'numpy.int32'>
        exp        = array([500000, 500000], dtype=int32)
        n          = 1000000
        obs        = array([1000000,       0], dtype=int32)
        self       = <scipy.stats.tests.test_stats.TestChisquare object at 0x000001D21C334D70>
        xp         = <module 'numpy' from 'C:\\bld\\scipy-split_1718137976487\\_test_env\\Lib\\site-packages\\numpy\\__init__.py'>
..\_test_env\Lib\site-packages\scipy\stats\_stats_py.py:7817: in chisquare
    return power_divergence(f_obs, f_exp=f_exp, ddof=ddof, axis=axis,
        axis       = 0
        ddof       = 0
        f_exp      = array([500000, 500000], dtype=int32)
        f_obs      = array([1000000,       0], dtype=int32)
..\_test_env\Lib\site-packages\scipy\stats\_stats_py.py:7595: in power_divergence
    rtol = xp.finfo(dtype_res).eps**0.5  # to pass existing tests
        axis       = 0
        bshape     = (np.int64(2),)
        ddof       = 0
        default_float = dtype('float64')
        dtype      = dtype('int32')
        dtype_res  = dtype('int32')
        f_exp      = array([500000, 500000], dtype=int32)
        f_obs      = array([1000000,       0], dtype=int32)
        f_obs_float = array([1000000.,       0.])
        lambda_    = 1
        warn_masked = <function power_divergence.<locals>.warn_masked at 0x000001D3F61B9940>
        xp         = <module 'scipy._lib.array_api_compat.numpy' from 'C:\\bld\\scipy-split_1718137976487\\_test_env\\Lib\\site-packages\\scipy\\_lib\\array_api_compat\\numpy\\__init__.py'>
..\_test_env\Lib\site-packages\numpy\_core\getlimits.py:519: in __new__
    raise ValueError("data type %r not inexact" % (dtype))
E   ValueError: data type <class 'numpy.int32'> not inexact
        cls        = <class 'numpy.finfo'>
        dtype      = <class 'numpy.int32'>
        dtypes     = [dtype('int32'), <class 'numpy.int32'>]
        newdtype   = <class 'numpy.int32'>
        obj        = None

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (30 by maintainers)

Most upvoted comments

Maybe a slight preference for trying to revert gh-18926 on the maintenance branch first. Either way there is some risk and if we need an rc3 so be it I suppose.

Can confirm that things pass with numpy 2.0.0. That means everything in this issue is resolved - thanks everyone!

what does np.isdtype(x.dtype, 'integral') give?

As it turns out, the wrong thing…

>>> import numpy as np
>>> np.__version__
'2.0.0rc2'
>>> x = np.asarray([1], dtype=np.int32)
>>> x.dtype
dtype('int32')
>>> np.issubdtype(x.dtype, np.integer)
True
>>> np.isdtype(x.dtype, 'integral')
False

So looks like a numpy bug after all.

can you try adding some breakpoint()'s to array_api_compat.common._aliases.isdtype?

I’m executing this in CI, so not really (windows builds are a PITA, so iterating locally is not trivial).

Great, and how about with the pure NumPy?

I’ve tried the numpy-only code and it successfully works on my windows machine with numpy 2.0, and also, the vendored array_api_compat provides the correct answers as of scipy 1.13.1.

I can try running the numpy example as well in CI, but it seems a bit beside the point to me - the issue (actually a regression, it seems) is somewhere in array_api_compat.

Using the vendored array API, your MRE reproduces. I’ve added the following to the failing test:

--- a/scipy/stats/tests/test_stats.py
+++ b/scipy/stats/tests/test_stats.py
@@ -4267,10 +4267,17 @@ class TestChisquare:

     @pytest.mark.parametrize("n, dtype", [(200, 'uint8'), (1000000, 'int32')])
     def test_chiquare_data_types_attributes(self, n, dtype, xp):
+        from scipy._lib.array_api_compat import numpy as xp
+        x = xp.asarray([1], dtype=xp.int32)
+        print(f"{x.dtype=}")
+        print(f"{xp.isdtype(x.dtype, 'integral')=}")
         # Regression test for gh-10159 and gh-18368
         dtype = getattr(xp, dtype)
+        print(f"{dtype=}")
         obs = xp.asarray([n, 0], dtype=dtype)
         exp = xp.asarray([n // 2, n // 2], dtype=dtype)
+        print(f"{obs.dtype=}")
+        print(f"{exp.dtype=}")
         res = stats.chisquare(obs, exp)
         stat, p = res
         xp_assert_close(stat, xp.asarray(n, dtype=xp.asarray(1.).dtype), rtol=1e-13)

and the result is

---------------------------- Captured stdout call -----------------------------
x.dtype=dtype('int32')
xp.isdtype(x.dtype, 'integral')=False
dtype=<class 'numpy.int32'>
obs.dtype=dtype('int32')
exp.dtype=dtype('int32')

If I’m looking at the right version of the code, then 7587 is

https://github.com/scipy/scipy/blob/a2a686a02e498911f7583ec95fbba013850099f2/scipy/stats/_stats_py.py#L7587C9-L7587C86

Can you set a breakpoint there, debug the test, and take a look at f_exp.dtype and xp.isdtype(f_exp.dtype, 'integral')? This line should result in dtype being default_float (dtype('float64')) because f_exp.dtype is integral. It does on my machine, but not on yours; on yours, dtype it is ending up as f_exp.dtype (dtype('int32')).

Nah, looking for whose fault is what is not what we do 😃.

caught earlier than when the rc’s get built in conda-forge

I actually wonder if there’s a structural improvement to easy conda-forge testing going forward. We should probably take that discussion somewhere else though.

Missing from that list of choices is:

Edited in 😃.