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

Adds idempotent switch setter function. #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

thilokru
Copy link
Collaborator

When executing notebooks, caution is warranted, because setting the microwave switch position will heat up the cryostat. This introduces unwanted disturbances and slows down measurement progress.

Changes

This pull request introduces two new functions:

  • A wrapper of get/<switch>/<position> called is_at_position, returning True if the switch is at the given position
  • An idempotent setter ensure_at_position, which ensures the microwave switch to be at the given position, but checking first, if any action is required.

Discussion Questions

  • Name of the functions

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

1 participant