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

Two 2D scan examples & refuse non-identifier instrument name #127

Merged
merged 7 commits into from
Apr 25, 2022

Conversation

jpsecher
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2022

Codecov Report

Merging #127 (aad1276) into master (155e292) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #127      +/-   ##
==========================================
+ Coverage   19.43%   19.49%   +0.05%     
==========================================
  Files         121      121              
  Lines       14438    14448      +10     
==========================================
+ Hits         2806     2816      +10     
  Misses      11632    11632              
Impacted Files Coverage Δ
qcodes_contrib_drivers/drivers/QDevil/QDAC2.py 96.35% <100.00%> (+0.02%) ⬆️
...contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py 80.00% <100.00%> (ø)
...ontrib_drivers/tests/QDevil/test_sim_qdac2_init.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@@ -2170,3 +2171,10 @@ def _set_up_manual_triggers(self) -> None:
def _set_up_simple_functions(self) -> None:
self.add_function('reset', call_cmd='*rst')
self.add_function('abort', call_cmd='abor')

def _check_instrument_name(self, name: str) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

stricktly qcodes does not prescribe this requirement for instrument names. but perhaps it should? could you explain when did it become a problem for qdac?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The doNd functions break when the instrument name is not isidentifier()

Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

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

for the new notebooks, don't forget to disable execution in the docs build, read here how to do that https://qcodes.github.io/Qcodes/examples/writing_drivers/Creating-Instrument-Drivers.html#Documentation

@astafan8 astafan8 merged commit 78839ee into QCoDeS:master Apr 25, 2022
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.

3 participants