-
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
fix: Added json extension to results for singleshot classification #747
Conversation
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 @GabrielePalazzo, do you know why tests are failing?
The problem was related to this line:
(path / RESULTSFILE).write_text(json.dumps(serialize(asdict_class))) |
An alternative solution would be to add .json
directly in this line.
Maybe it is better to put the extension directly in the top-level-constant.
I believe that tests should pass if you do so.
Let me know what you think.
If I revert this line, tests are passing. qibocal/src/qibocal/auto/operation.py Line 136 in e3737a3
The cause is here (when we read json): qibocal/src/qibocal/auto/operation.py Line 169 in e3737a3
I think the safest approach is what you suggested (explicitly adding .json in singleshot), considering that, for example, DATAFILE cannot have its extension (it can be both json and npz ).What do you think? |
Sure, let's add |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #747 +/- ##
=======================================
Coverage 96.44% 96.44%
=======================================
Files 108 108
Lines 7509 7509
=======================================
Hits 7242 7242
Misses 267 267
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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 @GabrielePalazzo
Closes #746.
Checklist:
master
main
main