-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ad9081 test fixes #566
Ad9081 test fixes #566
Conversation
14bb0dc
to
d88ae33
Compare
d88ae33
to
f8b0e1c
Compare
test/test_ad9081.py
Outdated
@@ -65,6 +65,16 @@ def test_ad9081_str_attr(test_attribute_multiple_values, iio_uri, classname, att | |||
test_attribute_multiple_values(iio_uri, classname, attr, val, 0) | |||
|
|||
|
|||
######################################### | |||
@pytest.mark.iio_hardware(hardware) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be hardware, True. Emulation won't generate errors here
test/rf/spec.py
Outdated
@@ -148,6 +148,10 @@ def sfdr(x, fs=1, ref=2 ** 15, plot=False): | |||
next = peak_vals[1] | |||
sfdr = absolute(main - next) | |||
|
|||
print(main) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove prints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug fix needed for emu tests
Signed-off-by: Julia Pineda <[email protected]>
Signed-off-by: Julia Pineda <[email protected]>
Signed-off-by: Julia Pineda <[email protected]>
Signed-off-by: Julia Pineda <[email protected]>
Signed-off-by: Julia Pineda <[email protected]>
f8b0e1c
to
4be93cc
Compare
Fixes
test/test_ad9081.py::test_ad9081_iq_loopback fails for variants with different sampling_frequency between rx and tx device. With these modifications, the estimated frequency at rx is within tolerance, although some tests still fail because of peak value assertions.
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: