Skip to content

Commit

Permalink
Expose version missmatch flag in the device clases
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasah committed Dec 17, 2024
1 parent ac7489a commit 02f63d1
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/zhinst/qcodes/device_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class SHFQA(SHFQADriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -102,6 +106,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -126,6 +131,10 @@ class SHFSG(SHFSGDriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -143,6 +152,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -167,6 +177,10 @@ class HDAWG(HDAWGDriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -184,6 +198,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -208,6 +223,10 @@ class PQSC(PQSCDriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -225,6 +244,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -249,6 +269,10 @@ class SHFQC(SHFQCDriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -266,6 +290,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -290,6 +315,10 @@ class UHFLI(UHFLIDriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -307,6 +336,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -331,6 +361,10 @@ class UHFQA(UHFQADriver):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -348,6 +382,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -372,6 +407,10 @@ class SHFLI(ZIBaseInstrument):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -389,6 +428,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -413,6 +453,10 @@ class GHFLI(ZIBaseInstrument):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -430,6 +474,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -454,6 +499,10 @@ class MFLI(ZIBaseInstrument):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -471,6 +520,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -495,6 +545,10 @@ class MFIA(ZIBaseInstrument):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -512,6 +566,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=False, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand All @@ -536,6 +591,10 @@ class HF2(ZIBaseInstrument):
new_session: By default zhinst-qcodes reuses already existing data
server session (within itself only), meaning only one session to a
data server exists. Setting the flag will create a new session.
allow_version_mismatch: if set to True, the connection to the data-server
will succeed even if the data-server is on a different version of LabOne.
If False, an exception will be raised if the data-server is on a
different version. (default = False)
Warning:
Creating a new session should be done carefully and reusing
Expand All @@ -553,6 +612,7 @@ def __init__(
name=None,
raw=False,
new_session: bool = False,
allow_version_mismatch: bool = False,
):
session = ZISession(host, port, hf2=True, new_session=new_session)
tk_device = session.toolkit_session.connect_device(serial, interface=interface)
Expand Down

0 comments on commit 02f63d1

Please sign in to comment.