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

Drop start() and stop() in each qblox module #740

Merged
merged 5 commits into from
Jan 17, 2024

Conversation

PiergiorgioButtarini
Copy link
Contributor

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

@stavros11 stavros11 added this to the Qibolab 0.1.5 milestone Jan 10, 2024
Base automatically changed from rmstart to main January 12, 2024 11:57
Copy link
Member

@alecandido alecandido left a comment

Choose a reason for hiding this comment

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

Now that #739 it would be useful to merge even this one.

Thanks @PiergiorgioButtarini for the PR!

@alecandido
Copy link
Member

alecandido commented Jan 12, 2024

Actually: I approved the PR just looking at the files changed (with seems alright), but there is some doctest failing (not sure why, since they are untouched and failing for reasons which do not seem strictly connected to this PR...)

Maybe just merge/rebase on main.

@stavros11
Copy link
Member

Doctest will be fixed by merging main here. There’s just a conflict to be addressed.

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (47d1d55) 62.68% compared to head (02a7a90) 62.71%.
Report is 23 commits behind head on main.

Files Patch % Lines
src/qibolab/instruments/qblox/cluster_qrm_rf.py 10.00% 9 Missing ⚠️
src/qibolab/instruments/qblox/cluster_qcm_bb.py 20.00% 4 Missing ⚠️
src/qibolab/instruments/qblox/cluster_qcm_rf.py 33.33% 4 Missing ⚠️
src/qibolab/instruments/qblox/controller.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #740      +/-   ##
==========================================
+ Coverage   62.68%   62.71%   +0.03%     
==========================================
  Files          47       47              
  Lines        5930     5919      -11     
==========================================
- Hits         3717     3712       -5     
+ Misses       2213     2207       -6     
Flag Coverage Δ
unittests 62.71% <16.66%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stavros11
Copy link
Member

@PiergiorgioButtarini thanks for the update. Could you also check the qpu tests before merging? There are some tests that are still calling module.start()/module.stop() which should probably be removed, but there is also a more crucial error

AttributeError: 'NoneType' object has no attribute 'get_sequencer_state'

This error also appears when calling instrument.disconnect() for qblox outside of tests (I tried running a qibocal routine and got the same error after execution finished).

@PiergiorgioButtarini
Copy link
Contributor Author

@stavros11 now this PR should be ready to be merged. I removed the useless tests and fixed the error you spotted.

Copy link
Member

@stavros11 stavros11 left a comment

Choose a reason for hiding this comment

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

Thanks @PiergiorgioButtarini, it is fixed now.

@PiergiorgioButtarini PiergiorgioButtarini merged commit 92f35df into main Jan 17, 2024
20 of 21 checks passed
@PiergiorgioButtarini PiergiorgioButtarini deleted the rmstart_qblox branch January 17, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants