-
Notifications
You must be signed in to change notification settings - Fork 321
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
Remove dataset add_parameter #1547
Remove dataset add_parameter #1547
Conversation
c8eeb5d
to
9ce3c16
Compare
Codecov Report
@@ Coverage Diff @@
## master #1547 +/- ##
==========================================
- Coverage 71.56% 71.54% -0.03%
==========================================
Files 105 105
Lines 12141 12137 -4
==========================================
- Hits 8689 8683 -6
- Misses 3452 3454 +2 |
@QCoDeS/core, bump, bump. All the commits here are contained in #1555, but it might be good to get this in first. We can also do both in one go. What do you think? |
Let's do these PRs one-by-one. I'll have a look at this tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
raise ValueError(f'Duplicate parameter name: {spec.name}') | ||
|
||
self._interdeps = self._interdeps._extend_with_paramspec(spec) | ||
raise NotImplementedError('This method has been removed. ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test for this :)
I am not super keen on removing code that is public api without a deprecation cycle but I don't have a good solution. Should we check that this is not called from any code that we know of before doing this? |
Code that i know (and i checked) of does not use DataSet.add_parameter. |
No occurrences in main qcodes (obviously) nor in the current master of |
Merge: ce97b7d 0d59177 Author: William H.P. Nielsen <[email protected]> Merge pull request #1547 from WilliamHPNielsen/remove/dataset_add_parameter
With the merge of #1477, the method
add_parameter
of theDataSet
became obsolete. This PR removes the method from theDataSet
API by breaking it. Removing that method will in turn make development of the interdependencies stuff easier, since the methodextend_with_paramspec
will no longer have to exist.If you wish, you can view this PR as the first "clean up the fallout of #1477" PR. There are more to come, including schema upgrades etc.
Still pending: upgrade all tests to useset_interdependencies
instead ofadd_parameter
.I am open to input on how to best break/remove/deprecate
DataSet.add_parameter
, but I stress the point that its existence is a bit of a roadblock and that I therefore find it justified to simply kill it without going through a deprecation cycle. Looking ahead, we will need to break a lot of stuff and I think we should allow ourselves to move quickly.@QCoDeS/core this is now ready for review.