Skip to content
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

Merged
merged 5 commits into from
Aug 16, 2024
Merged

Conversation

jpineda3
Copy link
Contributor

@jpineda3 jpineda3 commented May 21, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

  • Ran tests on all variants on zcu102

Test Configuration:

  • Hardware:
  • OS:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have signed off all commits and they contain "Signed-off by: "
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@jpineda3 jpineda3 marked this pull request as ready for review June 6, 2024 02:53
@@ -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)
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove prints

Copy link
Collaborator

@tfcollins tfcollins left a 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 <Julia.Pineda@analog.com>
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
@tfcollins tfcollins merged commit 764dd5b into analogdevicesinc:main Aug 16, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants