Repository navigation
feat: Add support for 7 Series DPO scope and MP5000 Series mainframe - #494
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #494 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 161 166 +5
Lines 4744 4854 +110
Branches 429 436 +7
==========================================
+ Hits 4744 4854 +110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| from tm_devices.drivers import MP5103 | ||
|
|
||
| if TYPE_CHECKING: | ||
| from tm_devices.commands import PSU50STCommands |
Check notice
Code scanning / CodeQL
Unused import
| mainframe: MP5103 = device_manager.add_mf("192.168.0.1") | ||
|
|
||
| # Some examples demonstrating the usage of mainframe level commands. | ||
| mf_model = mainframe.commands.localnode.model |
Check notice
Code scanning / CodeQL
Unused global variable
|
|
||
| # Some examples demonstrating the usage of mainframe level commands. | ||
| mf_model = mainframe.commands.localnode.model | ||
| value = mainframe.commands.eventlog.count |
Check notice
Code scanning / CodeQL
Unused global variable
| modular_psu = cast("PSU50STCommands", mainframe.get_module_commands_psu(slot=3)) | ||
| # Some examples demonstrating the usage of module level commands. | ||
| # Get the psu model and version | ||
| psu_model = modular_psu.model |
Check notice
Code scanning / CodeQL
Unused global variable
| # Some examples demonstrating the usage of module level commands. | ||
| # Get the psu model and version | ||
| psu_model = modular_psu.model | ||
| psu_version = modular_psu.version |
Check notice
Code scanning / CodeQL
Unused global variable
| # Enable the source output | ||
| modular_psu.psu[2].source.output = 1 | ||
| # Set the offset value used for voltage measurements | ||
| rel_value = modular_psu.psu[1].measure.rel.levelv |
Check notice
Code scanning / CodeQL
Unused global variable
| # Set the offset value used for voltage measurements | ||
| rel_value = modular_psu.psu[1].measure.rel.levelv | ||
| # Create a reference to the default buffer | ||
| my_buffer = modular_psu.psu[1].defbuffer1 |
Check notice
Code scanning / CodeQL
Unused global variable
| my_buffer = modular_psu.psu[1].defbuffer1 | ||
| # Read the value in the specified reading buffer | ||
| # Measure the voltage on channel 1 of the PSU | ||
| voltage_value = modular_psu.psu[1].measure.v() |
Check notice
Code scanning / CodeQL
Unused global variable
Signed-off-by: Nicholas Felt <[email protected]>
Breaking API Changes |
Test Results (ubuntu)
|
Test Results (macos)
|
Test Results (windows)
|
Proposed changes
Types of changes
What types of changes does your code introduce?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Addresses #<issue_number>