Skip to content

tests/emu: fix ltc2378 hardware_map.yml bug - #699

Open
PIoandan wants to merge 1 commit into
mainfrom
fix_ltc2378
Open

tests/emu: fix ltc2378 hardware_map.yml bug#699
PIoandan wants to merge 1 commit into
mainfrom
fix_ltc2378

Conversation

@PIoandan

@PIoandan PIoandan commented Nov 25, 2025

Copy link
Copy Markdown
Collaborator

Description

Fix ltc2378 hardware_map.yml issue

Type of change

  • 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

  • Test A
  • Test B

Test Configuration:

  • Hardware: Zedboard + LTC2378-20
  • OS: Linux

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

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

@github-actions

Copy link
Copy Markdown

Generated documentation for this PR is available at Link

@github-actions

github-actions Bot commented Nov 25, 2025

Copy link
Copy Markdown

Test Results

1 780 tests  ±0     476 ✅ ±0   12m 36s ⏱️ +3s
    1 suites ±0   1 304 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit f8f10ef. ± Comparison against base commit 5aa4b95.

This pull request removes 4 and adds 4 tests. Note that renamed tests count towards both.
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[np.float64(1.5), np.float64(29.0), np.float64(2.0), np.float64(11.0), np.float64(13.0), np.float64(22.0), np.float64(24.5), np.float64(15.5), np.float64(27.0), np.float64(29.5)]-depends={'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[np.float64(34.0), np.float64(4.0), np.float64(19.5), np.float64(30.0), np.float64(3.5), np.float64(16.5), np.float64(7.5), np.float64(16.5), np.float64(34.0), np.float64(31.0)]-depends={'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan0-val=[np.float64(-37.6), np.float64(-25.6), np.float64(-15.2), np.float64(-3.4), np.float64(-0.95), np.float64(-8.4), np.float64(-28.8), np.float64(-7.9), np.float64(-34.75), np.float64(-2.75)]-depends={'atten_control_mode_chan0': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan1-val=[np.float64(-36.6), np.float64(-8.65), np.float64(-22.6), np.float64(-7.9), np.float64(-36.8), np.float64(-26.8), np.float64(-8.35), np.float64(-21.8), np.float64(-18.35), np.float64(-17.55)]-depends={'atten_control_mode_chan1': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[np.float64(15.0), np.float64(34.0), np.float64(11.5), np.float64(32.0), np.float64(7.5), np.float64(34.0), np.float64(2.0), np.float64(14.0), np.float64(14.5), np.float64(20.5)]-depends={'gain_control_mode_chan1': 'spi', 'rx_ensm_mode_chan1': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=rx_hardwaregain_chan0-val=[np.float64(19.5), np.float64(8.0), np.float64(32.5), np.float64(33.0), np.float64(19.5), np.float64(2.0), np.float64(30.5), np.float64(1.0), np.float64(22.0), np.float64(27.5)]-depends={'gain_control_mode_chan0': 'spi', 'rx_ensm_mode_chan0': 'rf_enabled'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan0-val=[np.float64(-18.75), np.float64(-24.9), np.float64(-10.4), np.float64(-9.9), np.float64(-19.6), np.float64(-37.4), np.float64(-18.0), np.float64(-37.7), np.float64(-3.55), np.float64(-15.55)]-depends={'atten_control_mode_chan0': 'spi'}-classname=adi.adrv9002]
test.test_adrv9002_p ‑ test_adrv9002_hardware_gain[attr=tx_hardwaregain_chan1-val=[np.float64(-18.05), np.float64(-3.8), np.float64(-18.25), np.float64(-35.75), np.float64(-34.8), np.float64(-31.4), np.float64(-34.3), np.float64(-6.45), np.float64(-29.5), np.float64(-38.75)]-depends={'atten_control_mode_chan1': 'spi'}-classname=adi.adrv9002]

♻️ This comment has been updated with latest results.

@tfcollins

Copy link
Copy Markdown
Collaborator

The new driver name doesn't exist in the supported list https://github.com/analogdevicesinc/pyadi-iio/blob/main/adi/ltc2378.py#L25

Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
@PIoandan

PIoandan commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

The new driver name doesn't exist in the supported list https://github.com/analogdevicesinc/pyadi-iio/blob/main/adi/ltc2378.py#L25

Fixed.

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