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

Dev/b2200 switch matrix multiple channel connect #1480

Merged
merged 4 commits into from
Feb 20, 2019
Merged

Dev/b2200 switch matrix multiple channel connect #1480

merged 4 commits into from
Feb 20, 2019

Conversation

StefanD986
Copy link
Contributor

New feature for B2200 switch matrix driver:

Changes proposed in this pull request:

  • Adds methods to (dis)connect multiple input->output paths with one call (connect_paths() and disconnect_paths())
  • This is (much) faster and nicer than calling connect() multiple times in a loop.

Includes tests and updated example notebook.

@astafan8

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.

Looks great! will merge once CI is green))

@@ -4,6 +4,7 @@

from qcodes import VisaInstrument
from qcodes.utils.validators import MultiType, Ints, Enum, Lists
from typing import List, Tuple


def post_execution_status_poll(func):
Copy link
Contributor

Choose a reason for hiding this comment

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

as the mypy output of the CI suggests, you need to add type hints to this decorator. you can read about this online, but perhaps smth simple like def post_execution_status_poll(func: Callable) -> Callable: could work.

@codecov
Copy link

codecov bot commented Feb 20, 2019

Codecov Report

Merging #1480 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1480      +/-   ##
==========================================
+ Coverage   73.88%   73.91%   +0.03%     
==========================================
  Files          92       92              
  Lines       10420    10433      +13     
==========================================
+ Hits         7699     7712      +13     
  Misses       2721     2721

@astafan8 astafan8 merged commit 09d2b91 into microsoft:master Feb 20, 2019
giulioungaretti pushed a commit that referenced this pull request Feb 20, 2019
Merge: 1353b48 9d067a4
Author: Mikhail Astafev <astafan8@gmail.com>

    Merge pull request #1480 from StefanD986/dev/b2200_switch_matrix_multiple_channel_connect
@StefanD986 StefanD986 deleted the dev/b2200_switch_matrix_multiple_channel_connect branch February 28, 2019 09:26
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

2 participants