Skip to content

Commit

Permalink
Vary peak_min according to scale
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <[email protected]>
  • Loading branch information
jpineda3 committed Jan 14, 2025
1 parent abef118 commit 1d95b06
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
24 changes: 15 additions & 9 deletions test/test_daq2_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ def test_daq2_rx_data(test_dma_rx, iio_uri, classname, channel):
@pytest.mark.parametrize("channel", [0])
@pytest.mark.parametrize("param_set", [dict()])
@pytest.mark.parametrize(
"frequency, scale",
"frequency, scale, peak_min",
[
(5000000, 0.12),
(10000000, 0.06),
(10000000, 0.12),
(15000000, 0.12),
(15000000, 0.5),
(200000000, 0.5),
(5000000, 0.12, -50),
(10000000, 0.06, -55),
(10000000, 0.12, -50),
(15000000, 0.12, -50),
(15000000, 0.5, -45),
(200000000, 0.5, -45),
],
)
@pytest.mark.parametrize("peak_min", [-45])
def test_daq2_dds_loopback(
test_dds_loopback,
iio_uri,
Expand All @@ -48,7 +47,14 @@ def test_daq2_dds_loopback(
peak_min,
):
test_dds_loopback(
iio_uri, classname, param_set, channel, frequency, scale, peak_min
iio_uri,
classname,
param_set,
channel,
frequency,
scale,
peak_min,
useWindow=False,
)


Expand Down
24 changes: 15 additions & 9 deletions test/test_daq3_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ def test_daq3_rx_data(test_dma_rx, iio_uri, classname, channel):
@pytest.mark.parametrize("channel", [0, 1])
@pytest.mark.parametrize("param_set", [dict()])
@pytest.mark.parametrize(
"frequency, scale",
"frequency, scale, peak_min",
[
(5000000, 0.12),
(10000000, 0.06),
(10000000, 0.12),
(15000000, 0.12),
(15000000, 0.5),
(200000000, 0.5),
(5000000, 0.12, -50),
(10000000, 0.06, -55),
(10000000, 0.12, -50),
(15000000, 0.12, -50),
(15000000, 0.5, -45),
(200000000, 0.5, -45),
],
)
@pytest.mark.parametrize("peak_min", [-50])
def test_daq3_dds_loopback(
test_dds_loopback,
iio_uri,
Expand All @@ -48,7 +47,14 @@ def test_daq3_dds_loopback(
peak_min,
):
test_dds_loopback(
iio_uri, classname, param_set, channel, frequency, scale, peak_min
iio_uri,
classname,
param_set,
channel,
frequency,
scale,
peak_min,
useWindow=False,
)


Expand Down

0 comments on commit 1d95b06

Please sign in to comment.