Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make parameter registration on instrument part of parameter init #3191

Merged

Conversation

jenshnielsen
Copy link
Collaborator

Such that parameters can be regular attributes on the instrument. This is lifted from #3188

@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

Merging #3191 (653aa79) into master (61319ec) will increase coverage by 0.02%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master    #3191      +/-   ##
==========================================
+ Coverage   65.92%   65.95%   +0.02%     
==========================================
  Files         218      218              
  Lines       28943    28966      +23     
==========================================
+ Hits        19082    19104      +22     
- Misses       9861     9862       +1     

Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to advertize in the notebook that this way ofdeclaring parameters is now possible?) or is that left for further PRs?

qcodes/instrument/parameter.py Outdated Show resolved Hide resolved
qcodes/instrument/parameter.py Show resolved Hide resolved
qcodes/instrument/parameter.py Outdated Show resolved Hide resolved
@jenshnielsen
Copy link
Collaborator Author

Don't we want to advertize in the notebook that this way ofdeclaring parameters is now possible?) or is that left for further PRs?

Yes it needs some docs work before merging. I broke this out so that we could confirm individually that this is sound (the other pr breaks tests due to non related reasons)

@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch 4 times, most recently from be5a378 to 7803335 Compare July 13, 2021 11:54
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch from 7803335 to 9500c94 Compare July 13, 2021 12:49
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch from 9500c94 to c13137c Compare July 13, 2021 13:08
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch from a74fe4c to 351512f Compare July 14, 2021 09:55
@jenshnielsen jenshnielsen changed the title Make parameter registration part of parameter init Make parameter registration on instrument part of parameter init Jul 14, 2021
@astafan8 astafan8 added this to the 0.28.0 milestone Jul 14, 2021
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch 2 times, most recently from ab55c75 to 8a2a18b Compare July 19, 2021 11:32
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch from e57e32e to cdfc0ff Compare July 20, 2021 11:17
qcodes/instrument/base.py Show resolved Hide resolved
qcodes/instrument/parameter.py Outdated Show resolved Hide resolved
qcodes/tests/parameter/test_parameter_registration.py Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen force-pushed the make_parameters_attrs_on_instr branch from 29be8f9 to fa071da Compare July 21, 2021 07:31
qcodes/instrument/base.py Outdated Show resolved Hide resolved
qcodes/instrument/base.py Outdated Show resolved Hide resolved
qcodes/instrument/base.py Outdated Show resolved Hide resolved
jenshnielsen and others added 2 commits July 22, 2021 16:35
Co-authored-by: Mikhail Astafev <astafan8@gmail.com>
@jenshnielsen jenshnielsen merged commit c66a8af into microsoft:master Jul 22, 2021
@jenshnielsen jenshnielsen deleted the make_parameters_attrs_on_instr branch July 22, 2021 15:35
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.

None yet

2 participants