Skip to content
Snippets Groups Projects
Commit 5b9a3038 authored by Wolfgang Kastaun's avatar Wolfgang Kastaun
Browse files

Improve docstrings in unit test modules

parent 79a578ad
No related branches found
No related tags found
No related merge requests found
......@@ -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
)
......
"""Unit tests for module dynamic_delay_dsp"""
"""Unit tests for module dynamic_delay_dsp and fixed_shift_dsp"""
import numpy as np
import pytest
......
"""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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment