diff --git a/tests/test_dynamic_delay_dask.py b/tests/test_dynamic_delay_dask.py index 4bc93aaa60023dedd44d8fdbaaed1a7c67268d43..ce444d34a684948cbb6c9cc3c184182e22731cdf 100644 --- a/tests/test_dynamic_delay_dask.py +++ b/tests/test_dynamic_delay_dask.py @@ -25,8 +25,6 @@ def test_dynamic_shift_linear_dask() -> None: d = (0.93456456 + 0.0235345 * np.cos(4.3354 * t)) / dt - # ~ print(y[0], t[0], d[0]) - op_da = make_dynamic_shift_linear_dask( d.min(), d.max(), ShiftBC.FLAT, ShiftBC.EXCEPTION ) diff --git a/tests/test_dynamic_delay_dsp.py b/tests/test_dynamic_delay_dsp.py index 1f97c633daae798af541fa53f98fb3ba50414ab2..ad24b06f460417fa6db0253776aba5c886ee735d 100644 --- a/tests/test_dynamic_delay_dsp.py +++ b/tests/test_dynamic_delay_dsp.py @@ -1,4 +1,4 @@ -"""Unit tests for module dynamic_delay_dsp""" +"""Unit tests for module dynamic_delay_dsp and fixed_shift_dsp""" import numpy as np import pytest diff --git a/tests/test_fixed_shift_numpy.py b/tests/test_fixed_shift_numpy.py index 400f0f1ba6e29604d7bcc4d32a95e0e1c48dd7a5..26277d022f9096ef8b9a449847010fe07be7d87e 100644 --- a/tests/test_fixed_shift_numpy.py +++ b/tests/test_fixed_shift_numpy.py @@ -1,3 +1,5 @@ +"""Unit tests for module fixed_shift_numpy""" + import numpy as np import pytest @@ -24,7 +26,6 @@ def test_fixed_shift_lagrange_dask() -> None: y = g(t) for d in (0.93456456 / dt, 3.1, 3.5, 3.9, 4.0, 4.1, 4.5, 4.9): - # ~ d = 0.93456456 / dt op_np = make_fixed_shift_lagrange_numpy(ShiftBC.FLAT, ShiftBC.EXCEPTION, length) @@ -37,8 +38,6 @@ def test_fixed_shift_lagrange_dask() -> None: assert s_ex[margin_ex:] == pytest.approx(s_np[margin_ex:], abs=1e-15, rel=5e-13) - # ~ assert np.min(np.abs(s_ex[:margin_ex] - s_np[:margin_ex])) > np.max(np.abs(y[:margin_ex]))*1e-10 - with pytest.raises(RuntimeError): op_np(y, d) @@ -54,7 +53,6 @@ def test_fixed_shift_lagrange_dask() -> None: assert s2_ex[:-margin2_ex] == pytest.approx( s2_np[:-margin2_ex], abs=1e-15, rel=5e-13 ) - # ~ assert np.min(np.abs(s2_ex[-margin2_ex:] - s2_np[-margin2_ex:])) > np.max(np.abs(y[-margin2_ex:]))*1e-10 with pytest.raises(RuntimeError): op2_np(y, -d)