-
Notifications
You must be signed in to change notification settings - Fork 7
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
Simplified calibration scripts #869
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #869 +/- ##
=======================================
Coverage 97.23% 97.23%
=======================================
Files 118 118
Lines 8963 9014 +51
=======================================
+ Hits 8715 8765 +50
- Misses 248 249 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
6ef7827
to
77ba61c
Compare
05526da
to
8771039
Compare
I added the call simplification: now it is possible to use the names of the parameters as keyword arguments. There are three semi-reserved names: qibocal/src/qibocal/auto/execute.py Lines 46 to 49 in d63bc73
|
The main point of the PR is implemented, and vaguely tested. However, I'm asking for review to have an actual feedback, not necessarily to merge immediately (and in any case, this is pointing #909, which is pointing #921). But with a bit of boilerplate scripts could be already used, reimplementing in each and every script the saving operations in https://github.com/qiboteam/qibocal/blob/manage-output/src/qibocal/cli/autocalibration.py and the other commands. |
d634045
to
4f7a01b
Compare
c642c29
to
24ce17b
Compare
In b03665e I added a new (small) feature: positional arguments. Now, it should be also possible to omit the name of the parameters, and rely on the order they are listed in the I checked with the RX calibration script that nothing is broken. I'm not dedicating a huge effort to properly test all these features, also because they are experimental. As soon as we will improve a bit these scripts (and start using them), I will also expand the testing infrastructure, to make them even more reliable. |
41a0796
to
87aef15
Compare
for more information, see https://pre-commit.ci
Rebase leftover
To improve independence from the runcard, and the compatibility with scripts consequently
1eda603
to
39a3ba6
Compare
Nothing new wrt @andrea-pasquale review, I just rebased on top of the current |
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.
Thanks @alecandido, LGTM
Here (there will be) the implementation of the rant syntax of #865.
It seems that it is actually possible, and it should result in simple and nice scripts.
Plugins (i.e. protocols set extensions) will also be supported, though we now have the option of avoiding auto-discovery, since there will be room for explicit registration (that seems more intuitive and transparent).
Further proposals
This PR
Action
to be passed as input, we should spread its arguments over its*args
and**kwargs
, and later collect them into theAction
(providing suitable defaults, whenever possible)example usingcf. Async execution #916rxpy
process outputBeyond
tests are creating files that are left in the repo: we should use thetmp_path
fixture to avoid this (possibly changing working directory there)in particular, the folders:cls_results
,data
,qubit0
..qubit4
Data
andResults
contain as attributesdict[QubitId, ...]
- it would be nicer if this redundancy (the qubit dependence of these values) were managed at a higher level (not individually per-routine)