Skip to content

Add changelog fragments for ChannelTuple and driver improvements#7688

Merged
jenshnielsen merged 2 commits intojenshnielsen/add_channel_typefrom
copilot/sub-pr-7686-again
Dec 4, 2025
Merged

Add changelog fragments for ChannelTuple and driver improvements#7688
jenshnielsen merged 2 commits intojenshnielsen/add_channel_typefrom
copilot/sub-pr-7686-again

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

  • Changelog
  • Tests

Changes

Adds type-safe multi_parameter and multi_function methods to ChannelTuple class for accessing parameters/functions across all channels with proper type information.

Adds explicit type annotations to channels submodule in drivers:

  • RohdeSchwarzZNBBase
  • MiniCircuitsRCSPDT
  • TektronixTPS2012

Example usage

# Type-safe parameter access
temp_param = dci.channels.multi_parameter("temperature")
temperatures = temp_param.get()  # Returns tuple of all channel temperatures

# Type-safe function access  
multi_func = dci.channels.multi_function("autoscale")
multi_func()  # Calls autoscale on all channels

Changelog entries

  • 7686.improved - ChannelTuple multi_parameter/multi_function methods
  • 7686.improved_driver - Driver type annotation improvements

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jenshnielsen <548266+jenshnielsen@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tests for multi_parameter and multi_function methods Add changelog fragments for ChannelTuple and driver improvements Dec 4, 2025
Copilot AI requested a review from jenshnielsen December 4, 2025 11:53
@jenshnielsen jenshnielsen marked this pull request as ready for review December 4, 2025 11:53
@jenshnielsen jenshnielsen requested a review from a team as a code owner December 4, 2025 11:53
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.79%. Comparing base (3614d2f) to head (fac9a7d).
⚠️ Report is 7 commits behind head on jenshnielsen/add_channel_type.

Additional details and impacted files
@@                        Coverage Diff                        @@
##           jenshnielsen/add_channel_type    #7688      +/-   ##
=================================================================
+ Coverage                          58.82%   59.79%   +0.96%     
=================================================================
  Files                                352      352              
  Lines                              31681    31681              
=================================================================
+ Hits                               18637    18944     +307     
+ Misses                             13044    12737     -307     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jenshnielsen jenshnielsen merged commit 84a102e into jenshnielsen/add_channel_type Dec 4, 2025
20 checks passed
@jenshnielsen jenshnielsen deleted the copilot/sub-pr-7686-again branch December 4, 2025 12:13
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