Repository navigation
fix: add model-specific AFG31K USB IDs - #598
Conversation
|
Thanks for the review. I updated this to change the existing Validation:
|
98d8b88 to
2070eca
Compare
|
Thanks for checking those IDs. I reworked this to keep Updated:
Verification:
|
|
Thanks, added |
I forgot to mention, you need to remove the family base class decorator from the |
nfelt14
left a comment
There was a problem hiding this comment.
You need to run the all the tests locally using tox run -e tests to verify they all pass
|
Thanks, fixed. I removed |
|
Fixed the CI lint failure from the example still importing the old non-public |
1e90d04 to
4820372
Compare
|
Thanks for the review. I rebased this on current main and kept the AFG31K model classes with the family base decorators in place. Validation:
|
|
Ran the requested test environment:
No code changes in this follow-up. |
|
Ran No code changes from this verification pass. |
|
Ran the requested full test command on the PR branch:
No code changes from this verification pass. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #598 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 166 166
Lines 4841 4864 +23
Branches 437 437
=========================================
+ Hits 4841 4864 +23 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
nfelt14
left a comment
There was a problem hiding this comment.
Can you add the missing ones from this list?
31021 | 0x0355
31022 | 0x0356
31051 | 0x0357
31052 | 0x0358
31101 | 0x0359
31102 | 0x035A
31151 | 0x035B
31152 | 0x035C
31251 | 0x035D
31252 | 0x035E
|
Added the remaining AFG31K USBTMC product IDs and coverage for forward and reverse resource-expression mapping. Verification:
|
|
Moved the AFG31K changelog entry under Verification:
|
Breaking API Changes |
Test Results (macos)
|
Test Results (ubuntu)
|
Test Results (windows)
|
fix: add model-specific AFG31K USB IDs
Proposed changes
Keeps
AFG31Kas the family driver and adds model-specific AFG31K driver mappings for USBTMC resource generation where the USB product IDs differ.Addresses #597
Types of changes
Checklist
Addresses #<issue_number>Validation:
python3 -m pytest tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py -q --no-covpython3 -m pytest tests -q --no-covpython3 -m ruff check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.pypython3 -m ruff format --check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.pygit diff --check