Qcodes icon indicating copy to clipboard operation
Qcodes copied to clipboard

[WIP] Add convenience methods to DelegateParameter

Open jenshnielsen opened this issue 11 months ago • 2 comments

DelegateParameter now includes validators of its source Parameter into its validators. This ensures that a DelegateParameter with a non numeric source parameter is registered correctly in a measurement when the DelegateParameter it self does not set a validator. Furthermore `DelegateParameterhas gained aroot_sourceattribute that makes it easier to get the root source of aDelegateParameterthat delegates to anotherDelegateParameter``.

Alternative to #6817

jenshnielsen avatar Jan 27 '25 12:01 jenshnielsen

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.39%. Comparing base (83d4cd5) to head (d3d58bf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6832      +/-   ##
==========================================
+ Coverage   69.37%   69.39%   +0.01%     
==========================================
  Files         341      341              
  Lines       31381    31399      +18     
==========================================
+ Hits        21771    21789      +18     
  Misses       9610     9610              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 27 '25 12:01 codecov[bot]

Moved the validators to https://github.com/microsoft/Qcodes/pull/6865 will figure out how to integrate the test with the infer module here in a more consistent way

jenshnielsen avatar Feb 05 '25 14:02 jenshnielsen